Lines Matching refs:pszSeparators
121 * @param pszSeparators The separators.
123 static bool rtGetOptIsUniCpInString(RTUNICP Cp, const char *pszSeparators)
130 int rc = RTStrGetCpEx(&pszSeparators, &CpSep);
145 * @param pszSeparators The separators.
148 DECLINLINE(bool) rtGetOptIsAsciiInSet(char ch, const char *pszSeparators, size_t cchSeparators)
152 case 8: if (ch == pszSeparators[7]) return true;
153 case 7: if (ch == pszSeparators[6]) return true;
154 case 6: if (ch == pszSeparators[5]) return true;
155 case 5: if (ch == pszSeparators[4]) return true;
156 case 4: if (ch == pszSeparators[3]) return true;
157 case 3: if (ch == pszSeparators[2]) return true;
158 case 2: if (ch == pszSeparators[1]) return true;
159 case 1: if (ch == pszSeparators[0]) return true;
162 return memchr(pszSeparators, ch, cchSeparators) != NULL;
173 * @param pszSeparators The separators.
174 * @param cchSeparators The length of @a pszSeparators.
176 DECL_FORCE_INLINE(bool) rtGetOptIsCpInSet(RTUNICP Cp, const char *pszSeparators, size_t cchSeparators)
179 return rtGetOptIsAsciiInSet((char)Cp, pszSeparators, cchSeparators);
180 return rtGetOptIsUniCpInString(Cp, pszSeparators);
189 * @param pszSeparators The separators.
190 * @param cchSeparators The length of @a pszSeparators.
192 static int rtGetOptSkipDelimiters(const char **ppszSrc, const char *pszSeparators, size_t cchSeparators)
207 || !rtGetOptIsCpInSet(Cp, pszSeparators, cchSeparators))
216 RTDECL(int) RTGetOptArgvFromString(char ***ppapszArgv, int *pcArgs, const char *pszCmdLine, const char *pszSeparators)
224 if (!pszSeparators)
225 pszSeparators = " \t\n\r";
227 AssertPtr(pszSeparators);
228 size_t const cchSeparators = strlen(pszSeparators);
245 rc = rtGetOptSkipDelimiters(&pszSrc, pszSeparators, cchSeparators);
276 else if (rtGetOptIsCpInSet(Cp, pszSeparators, cchSeparators))