Lines Matching refs:segments
438 StringBuilder[] segments = new StringBuilder[4];
439 // Allocate only segments[SEG_RAW] here. The rest are
441 segments[SEG_RAW] = new StringBuilder();
454 segments[part].append(ch); // handle doubles
461 if (segments[SEG_INDEX] == null) {
462 segments[SEG_INDEX] = new StringBuilder();
465 segments[part].append(ch);
469 segments[part].append(ch);
477 if (segments[++part] == null) {
478 segments[part] = new StringBuilder();
481 segments[part].append(ch);
486 segments[part].append(ch);
491 makeFormat(i, formatNumber, segments);
493 // throw away other segments
494 segments[SEG_INDEX] = null;
495 segments[SEG_TYPE] = null;
496 segments[SEG_MODIFIER] = null;
499 segments[part].append(ch);
504 if (part != SEG_TYPE || segments[SEG_TYPE].length() > 0) {
505 segments[part].append(ch);
512 segments[part].append(ch);
522 this.pattern = segments[0].toString();
1380 // Indices for segments
1440 String[] segments = new String[textSegments.length];
1443 segments[i] = (oneseg != null) ? oneseg.toString() : "";
1449 argumentNumber = Integer.parseInt(segments[SEG_INDEX]); // always unlocalized!
1452 + segments[SEG_INDEX], e);
1474 offsets[offsetNumber] = segments[SEG_RAW].length();
1479 if (segments[SEG_TYPE].length() != 0) {
1480 int type = findKeyword(segments[SEG_TYPE], TYPE_KEYWORDS);
1488 switch (findKeyword(segments[SEG_MODIFIER], NUMBER_MODIFIER_KEYWORDS)) {
1503 newFormat = new DecimalFormat(segments[SEG_MODIFIER],
1515 int mod = findKeyword(segments[SEG_MODIFIER], DATE_TIME_MODIFIER_KEYWORDS);
1527 newFormat = new SimpleDateFormat(segments[SEG_MODIFIER], locale);
1538 newFormat = new ChoiceFormat(segments[SEG_MODIFIER]);
1542 + segments[SEG_MODIFIER], e);
1549 segments[SEG_TYPE]);