added and tested UTF-8 support for ini files

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40155
This commit is contained in:
David Anderson
2006-11-07 00:53:06 +00:00
parent a5f4929c60
commit 89b125f6c1
4 changed files with 98 additions and 12 deletions
+9
View File
@@ -238,6 +238,15 @@ namespace SourceMod
ITextListener_SMC *smc_listener,
unsigned int *line,
unsigned int *col) =0;
public:
/**
* @brief Returns the number of bytes that a multi-byte character contains in a UTF-8 stream.
* If the current character is not multi-byte, the function returns 1.
*
* @param stream Pointer to multi-byte ANSI character string.
* @return Number of bytes in current character.
*/
virtual unsigned int GetUTF8CharBytes(const char *stream) =0;
};
};