10 byte BytesPerCharacter;
14 if(strName && *strName && Result && (ResultSize > (
int)strlen(strName)))
16 strcpy(Result, strName);
18 l = d + MAX_FILE_NAME_SIZE;
26 if(d + BytesPerCharacter >= l)
break;
29 memcpy(d, (
void *) s, BytesPerCharacter);
30 d += BytesPerCharacter;
31 s += (BytesPerCharacter - 1);
44 if(ResultSize) *d =
'\0';
bool isLegalChar(const byte *, eRemoveChars)
char * ValidFileName(const char *strName, eRemoveChars ControlCharacters, char *Result, int ResultSize)
bool isUTF8Char(const byte *p, byte *BytesPerChar)