jdk/src/share/classes/java/util/Formatter.java
changeset 7803 56bc97d69d93
parent 7273 3367d89043cf
child 7816 55a18147b4bf
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
  2488 
  2488 
  2489     /**
  2489     /**
  2490      * Finds format specifiers in the format string.
  2490      * Finds format specifiers in the format string.
  2491      */
  2491      */
  2492     private FormatString[] parse(String s) {
  2492     private FormatString[] parse(String s) {
  2493         ArrayList<FormatString> al = new ArrayList<FormatString>();
  2493         ArrayList<FormatString> al = new ArrayList<>();
  2494         Matcher m = fsPattern.matcher(s);
  2494         Matcher m = fsPattern.matcher(s);
  2495         for (int i = 0, len = s.length(); i < len; ) {
  2495         for (int i = 0, len = s.length(); i < len; ) {
  2496             if (m.find(i)) {
  2496             if (m.find(i)) {
  2497                 // Anything between the start of the string and the beginning
  2497                 // Anything between the start of the string and the beginning
  2498                 // of the format specifier is either fixed text or contains
  2498                 // of the format specifier is either fixed text or contains