Lines Matching refs:pStr
155 CFX_WideString CJS_PublicMethods::StrLTrim(const FX_WCHAR* pStr) {
156 while (*pStr && *pStr == L' ')
157 pStr++;
159 return pStr;
162 CFX_WideString CJS_PublicMethods::StrRTrim(const FX_WCHAR* pStr) {
163 const FX_WCHAR* p = pStr;
166 while (p > pStr && *(p - 1) == L' ')
169 return CFX_WideString(pStr, p - pStr);
172 CFX_WideString CJS_PublicMethods::StrTrim(const FX_WCHAR* pStr) {
173 return StrRTrim(StrLTrim(pStr).c_str());
176 CFX_ByteString CJS_PublicMethods::StrLTrim(const FX_CHAR* pStr) {
177 while (*pStr && *pStr == ' ')
178 pStr++;
180 return pStr;
183 CFX_ByteString CJS_PublicMethods::StrRTrim(const FX_CHAR* pStr) {
184 const FX_CHAR* p = pStr;
187 while (p > pStr && *(p - 1) == L' ')
190 return CFX_ByteString(pStr, p - pStr);
193 CFX_ByteString CJS_PublicMethods::StrTrim(const FX_CHAR* pStr) {
194 return StrRTrim(StrLTrim(pStr));