• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/

Lines Matching defs:pos

638     int32_t pos = -1;
640 while ((element = pluralPtn->nextElement(pos)) != NULL) {
1620 FieldPosition& pos,
1622 FieldPositionOnlyHandler handler(pos);
1778 * @param pos the number of integer digits to the right of
1784 UBool DecimalFormat::isGroupingPosition(int32_t pos) const {
1786 if (isGroupingUsed() && (pos > 0) && (fGroupingSize > 0)) {
1787 if ((fGroupingSize2 > 0) && (pos > fGroupingSize)) {
1788 result = ((pos - fGroupingSize) % fGroupingSize2) == 0;
1790 result = pos % fGroupingSize == 0;
2189 ParsePosition& pos) const {
2191 int32_t start = pos.getIndex();
2193 parse(text, parseResult, pos, curbuf);
2194 if (pos.getIndex() != start) {
2198 pos.setIndex(start); // indicate failure
2211 * position within text to match; must have 0 <= pos.getIndex() <
2378 int32_t pos = -1;
2380 while ( (element = fAffixPatternsForCurrency->nextElement(pos)) != NULL ) {
2885 int32_t pos = position + tmp->length();
2888 if (pos < textLength)
2891 if (!text.compare(pos, tmp->length(), *tmp))
2893 pos += tmp->length();
2897 if (!text.compare(pos, tmp->length(), *tmp))
2900 pos += tmp->length();
2906 while (pos < textLength) {
2907 ch = text[(int32_t)pos];
2919 ++pos;
2927 position = pos; // Advance past the exponent
3076 * @param pos offset into input at which to begin matching
3089 int32_t pos,
3102 return compareComplexAffix(*affixPat, text, pos, type, currency);
3122 return compareSimpleAffix(*patternToCompare, text, pos, isLenient());
3166 * @param pos offset into input at which to begin matching
3171 int32_t pos,
3173 int32_t start = pos;
3197 UChar32 ic = input.char32At(pos);
3199 pos += U16_LENGTH(ic);
3200 pos = skipBidiMarks(input, pos); // skip any trailing bidi marks
3201 return pos - start;
3216 while (pos < inputLength) {
3217 UChar32 ic = input.char32At(pos);
3221 pos += len;
3231 pos ++; // just skip over this input text
3243 int32_t s = pos;
3244 pos = skipUWhiteSpace(input, pos);
3245 if (pos == s && !literalMatch) {
3255 while (pos < inputLength) {
3256 UChar32 ic = input.char32At(pos);
3259 pos += len;
3262 pos++; // just skip over this input text
3278 pos = skipUWhiteSpaceAndMarks(input, pos);
3279 UChar32 ic = input.char32At(pos);
3282 pos += U16_LENGTH(ic);
3283 pos = skipBidiMarks(input, pos);
3284 return pos - start;
3292 pos = skipUWhiteSpaceAndMarks(input, pos);
3294 if (i >= affixLength || pos >= inputLength) {
3299 UChar32 ic = input.char32At(pos);
3307 pos += U16_LENGTH(ic);
3308 pos = skipBidiMarks(input, pos);
3315 return pos - start;
3320 * pos in text.
3322 int32_t DecimalFormat::skipPatternWhiteSpace(const UnicodeString& text, int32_t pos) {
3324 return (int32_t)(PatternProps::skipWhiteSpace(s + pos, text.length() - pos) - s);
3328 * Skip over a run of zero or more isUWhiteSpace() characters at pos
3331 int32_t DecimalFormat::skipUWhiteSpace(const UnicodeString& text, int32_t pos) {
3332 while (pos < text.length()) {
3333 UChar32 c = text.char32At(pos);
3337 pos += U16_LENGTH(c);
3339 return pos;
3343 * Skip over a run of zero or more isUWhiteSpace() characters or bidi marks at pos
3346 int32_t DecimalFormat::skipUWhiteSpaceAndMarks(const UnicodeString& text, int32_t pos) {
3347 while (pos < text.length()) {
3348 UChar32 c = text.char32At(pos);
3352 pos += U16_LENGTH(c);
3354 return pos;
3358 * Skip over a run of zero or more bidi marks at pos in text.
3360 int32_t DecimalFormat::skipBidiMarks(const UnicodeString& text, int32_t pos) {
3361 while (pos < text.length()) {
3362 UChar c = text.charAt(pos);
3366 pos++;
3368 return pos;
3375 * @param pos offset into input at which to begin matching
3385 int32_t pos,
3389 int32_t start = pos;
3395 i<affixPat.length() && pos >= 0; ) {
3429 ParsePosition ppos(pos);
3436 if (U_SUCCESS(ec) && ppos.getIndex() != pos) {
3446 pos = -1;
3450 pos = ppos.getIndex();
3452 pos = -1;
3474 pos = match(text, pos, *affix);
3479 pos = match(text, pos, c);
3484 return pos - start;
3488 * Match a single character at text[pos] and return the index of the
3492 int32_t DecimalFormat::match(const UnicodeString& text, int32_t pos, UChar32 ch) {
3496 int32_t s = pos;
3497 pos = skipPatternWhiteSpace(text, pos);
3498 if (pos == s) {
3501 return pos;
3503 return (pos >= 0 && text.char32At(pos) == ch) ?
3504 (pos + U16_LENGTH(ch)) : -1;
3508 * Match a string at text[pos] and return the index of the next
3512 int32_t DecimalFormat::match(const UnicodeString& text, int32_t pos, const UnicodeString& str) {
3513 for (int32_t i=0; i<str.length() && pos >= 0; ) {
3519 pos = match(text, pos, ch);
3521 return pos;
4357 FieldPosition pos(0); // ignored
4361 fCurrencyChoice->format(number, affix, pos);
4531 for (int pos=0; pos<affixPattern->length(); pos=i) {
4532 i = affixPattern->indexOf(kQuote, pos);
4535 affixPattern->extractBetween(pos, affixPattern->length(), s);
4539 if (i > pos) {
4541 affixPattern->extractBetween(pos, i, s);
4724 // 65 4321 (1-based pos, count from the right)
4725 // Use # if pos > maxSigDig or 1 <= pos <= (maxSigDig - minSigDig)
4726 // Use @ if (maxSigDig - minSigDig) < pos <= maxSigDig
4734 int32_t pos = roundingDecimalPos - i;
4735 if (pos >= 0 && pos < roundingDigits.length()) {
4736 result.append((UChar) (roundingDigits.char32At(pos) - kPatternZeroDigit + zero));
4756 int32_t pos = roundingDecimalPos;
4758 if (! roundingDigits.isEmpty() && pos < roundingDigits.length()) {
4759 if (pos < 0) {
4763 result.append((UChar)(roundingDigits.char32At(pos) - kPatternZeroDigit + zero));
4765 ++pos;
5277 int32_t pos = -1;
5279 while ( (element = table->nextElement(pos)) != NULL ) {
5296 int32_t pos = -1;
5298 while ( (element = fAffixPatternsForCurrency->nextElement(pos)) != NULL ) {
5315 int32_t pos = -1;
5318 while ( (element = source->nextElement(pos)) != NULL ) {
5567 int32_t pos = -1;
5570 while ( (element = source->nextElement(pos)) != NULL ) {