mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 10:25:32 +00:00
fix(developer): add doc comment to u16ltrim
This commit is contained in:
parent
86fcf2e37d
commit
aa6db34ae2
2 changed files with 7 additions and 0 deletions
|
|
@ -389,6 +389,11 @@ double u16tof(KMX_WCHAR* str16) {
|
|||
return strtof(str.c_str(), &pEnd);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Trim whitespace from the start (left) of a string
|
||||
* @param p Pointer to u16string
|
||||
* @return Pointer to the first non-whitespace character in the string
|
||||
*/
|
||||
const KMX_WCHAR* u16ltrim(const KMX_WCHAR* p) {
|
||||
while(p && iswspace(*p)) p++;
|
||||
return p;
|
||||
|
|
|
|||
|
|
@ -75,6 +75,8 @@ const KMX_WCHAR* u16rchr_slash(KMX_WCHAR const* Name);
|
|||
|
||||
std::string toHex(int num1);
|
||||
|
||||
/** @brief Trim whitespace from the start (left) of a string */
|
||||
const KMX_WCHAR* u16ltrim(const KMX_WCHAR* p);
|
||||
|
||||
KMX_WCHAR* u16rtrim(KMX_WCHAR *p);
|
||||
KMX_WCHAR* u16trim(KMX_WCHAR *p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue