Home | History | Annotate | Download | only in common

Lines Matching refs:pos

126  * Skip over a sequence of zero or more white space characters at pos.
127 * @param advance if true, advance pos to the first non-white-space
128 * character at or after pos, or str.length(), if there is none.
129 * Otherwise leave pos unchanged.
131 * after pos, or str.length(), if there is none.
133 int32_t ICU_Utility::skipWhitespace(const UnicodeString& str, int32_t& pos,
135 int32_t p = pos;
139 pos = p;
154 * @param pos either the start or limit of a range of 'text', to skip
159 * 'pos'
163 //? int32_t pos, int32_t stop) {
165 //? UBool isForward = (stop >= pos);
168 //? --pos; // pos is a limit, so back up by one
171 //? while (pos != stop &&
172 //? PatternProps::isWhiteSpace(c = text.char32At(pos))) {
174 //? pos += U16_LENGTH(c);
176 //? pos -= U16_LENGTH(c);
181 //? ++pos; // make pos back into a limit
184 //? return pos;
191 * @param pos INPUT-OUTPUT parameter. On input, pos[0] is the
192 * offset of the first character to be parsed. On output, pos[0]
194 * fails, pos[0] will be unchanged.
199 UBool ICU_Utility::parseChar(const UnicodeString& id, int32_t& pos, UChar ch) {
200 int32_t start = pos;
201 skipWhitespace(id, pos, TRUE);
202 if (pos == id.length() ||
203 id.charAt(pos) != ch) {
204 pos = start;
207 ++pos;
219 * pos is advanced to the first unparsed index and returned.