Better documentation for MakeLowerCase and Normalize.

This commit is contained in:
Alex Zolotarev 2015-03-25 19:12:54 +03:00
parent f3fc186d74
commit 83860fac78
3 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,7 @@
/// Performs full case folding for string to make it search-compatible according
/// to rules in ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt
/// This beautiful code has been inspired by Zurich area in 2011 (Alex Zolotarev).
#include "string_utils.hpp"
namespace strings

View file

@ -1,3 +1,7 @@
/// Performs NFKD - Compatibility decomposition for Unicode according
/// to rules in ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt
/// This beautiful code has been inspired by Zurich area in 2011 (Alex Zolotarev).
#include "string_utils.hpp"
namespace strings

View file

@ -29,12 +29,17 @@ public:
bool IsEqualAscii(char const * s) const;
};
UniString MakeLowerCase(UniString const & s);
/// Performs full case folding for string to make it search-compatible according
/// to rules in ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt
/// For implementation @see base/lower_case.cpp
void MakeLowerCase(UniString & s);
UniString Normalize(UniString const & s);
UniString MakeLowerCase(UniString const & s);
/// Performs NFKD - Compatibility decomposition for Unicode according
/// to rules in ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt
/// For implementation @see base/normilize_unicode.cpp
void Normalize(UniString & s);
UniString Normalize(UniString const & s);
/// Counts number of start symbols in string s (that is not lower and not normalized) that maches
/// to lower and normalized string low_s. If s doen't starts with low_s then returns 0; otherwise