Merge pull request #5 from FusixGit/patch-2
Update IniFile.h // needs typo correction
This commit is contained in:
commit
e2e4a33954
@ -17,14 +17,7 @@
|
|||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
typedef enum _STRING_TRIM_TYPE
|
// Out values struсts
|
||||||
{
|
|
||||||
TRIM_LEFT,
|
|
||||||
TRIM_RIGHT,
|
|
||||||
TRIM_BOTH,
|
|
||||||
} STRING_TRIM_TYPE;
|
|
||||||
|
|
||||||
// Out values struñts
|
|
||||||
typedef struct _INI_VAR_STRING
|
typedef struct _INI_VAR_STRING
|
||||||
{
|
{
|
||||||
char Name[128];
|
char Name[128];
|
||||||
@ -99,11 +92,15 @@ private:
|
|||||||
DWORD *FileStringsMap; // String-map
|
DWORD *FileStringsMap; // String-map
|
||||||
INI_DATA IniData; // Parsed data
|
INI_DATA IniData; // Parsed data
|
||||||
|
|
||||||
bool IsVariable(char *Str, DWORD StrSize); // Is variable (for Parse)
|
// Common service functions
|
||||||
bool FillVariable(INI_SECTION_VARIABLE *Variable, char *Str, DWORD StrSize); // Fill INI_SECTION_VARIABLE struct (for Parse)
|
int StrTrim(char* Str);
|
||||||
int StrTrim(char* Str, STRING_TRIM_TYPE Type);
|
|
||||||
DWORD GetFileStringFromNum(DWORD StringNumber, char *RetString, DWORD Size); // Get stroing from string-map
|
// Class service functions
|
||||||
bool CreateStringsMap(); // Create file string-map
|
bool CreateStringsMap(); // Create file string-map
|
||||||
bool Parse(); // Parse file to class structures
|
bool Parse(); // Parse file to class structures
|
||||||
|
DWORD GetFileStringFromNum(DWORD StringNumber, char *RetString, DWORD Size); // Get stroing from string-map
|
||||||
|
bool IsVariable(char *Str, DWORD StrSize);
|
||||||
|
bool FillVariable(INI_SECTION_VARIABLE *Variable, char *Str, DWORD StrSize); // Fill INI_SECTION_VARIABLE struct (for Parse)
|
||||||
|
bool GetVariableInSectionPrivate(char *SectionName, char *VariableName, INI_SECTION_VARIABLE *RetVariable);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user