Scid
4.7.0
|
Go to the source code of this file.
Functions | |
ecoT | eco_FromString (const char *ecoStr) |
void | eco_ToString (ecoT ecoCode, char *ecoStr, bool extensions) |
ecoT | eco_BasicCode (ecoT eco) |
ecoT | eco_Reduce (ecoT eco) |
ecoReduce() - maps eco to a smaller set More... | |
ecoT | eco_LastSubCode (ecoT eco) |
void | strCopyExclude (char *target, const char *original, const char *excludeChars) |
char * | strAppend (char *target, const char *extra) |
char * | strDuplicate (const char *original) |
uint | strPad (char *target, const char *original, int width, char padding) |
const char * | strFirstChar (const char *target, char matchChar) |
const char * | strLastChar (const char *target, char matchChar) |
void | strStrip (char *str, char ch) |
const char * | strTrimLeft (const char *target, const char *trimChars) |
uint | strTrimSuffix (char *target, char suffixChar) |
void | strTrimDate (char *str) |
void | strTrimMarkCodes (char *str) |
void | strTrimMarkup (char *str) |
const char * | strFirstWord (const char *str) |
const char * | strNextWord (const char *str) |
bool | strIsUnknownName (const char *str) |
bool | strIsSurnameOnly (const char *name) |
bool | strGetBoolean (const char *str) |
void | strGetIntegers (const char *str, int *results, uint nResults) |
void | strGetUnsigneds (const char *str, uint *results, uint nResults) |
resultT | strGetResult (const char *str) |
flagT | strGetFlag (const char *str) |
squareT | strGetSquare (const char *str) |
int | strUniqueExactMatch (const char *keyStr, const char **strTable, bool exact) |
ecoReduce() - maps eco to a smaller set
eco | the eco value to convert (must be != 0) |
Scid ECO subcodes use 131 values for each canonical ECO. For example A00 is divided in A00,A00a,A00a1,A00a2,A00a3,A00a4,A00b...A00z4 corresponding to eco values 1,2,3,4,5,6,7...131 (value 0 means no ECO). This functions will map subECOs like A00a1...A00a4 into A00a, reducing the 131 values to 27. The previous sequence will became 0,1,1,1,1,1,2...26
void eco_ToString | ( | ecoT | ecoCode, |
char * | ecoStr, | ||
bool | extensions | ||
) |
void strCopyExclude | ( | char * | target, |
const char * | original, | ||
const char * | excludeChars | ||
) |
const char* strFirstChar | ( | const char * | target, |
char | matchChar | ||
) |
void strGetIntegers | ( | const char * | str, |
int * | results, | ||
uint | nResults | ||
) |
const char* strLastChar | ( | const char * | target, |
char | matchChar | ||
) |
uint strPad | ( | char * | target, |
const char * | original, | ||
int | width, | ||
char | padding | ||
) |
const char* strTrimLeft | ( | const char * | target, |
const char * | trimChars | ||
) |