fix(developer): add doc comment to u16ltrim

This commit is contained in:
Dr Mark C. Sinclair 2024-09-05 13:55:06 +01:00
parent 86fcf2e37d
commit aa6db34ae2
2 changed files with 7 additions and 0 deletions

View file

@ -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;

View file

@ -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);