Lines Matching refs:pos
277 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos,
280 final int startPos = pos;
291 formatStr[pos] = sTmpFormatStr[tmp];
292 pos++;
298 formatStr[pos] = (char)(dig + '0');
299 pos++;
302 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) {
304 formatStr[pos] = (char)(dig + '0');
305 pos++;
308 formatStr[pos] = (char)(amt + '0');
309 pos++;
311 formatStr[pos] = suffix;
312 pos++;
314 return pos;
325 int pos = 0;
327 while (pos < fieldLen) {
328 formatStr[pos++] = ' ';
330 formatStr[pos] = '0';
331 return pos+1;
359 int pos = 0;
368 formatStr[pos] = ' ';
369 pos++;
374 formatStr[pos] = prefix;
375 pos++;
377 int start = pos;
379 pos = printFieldLocked(formatStr, days, 'd', pos, false, 0);
380 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0);
381 pos = printFieldLocked(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0);
382 pos = printFieldLocked(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0);
383 pos = printFieldLocked(formatStr, millis, 'm', pos, true, (zeropad && pos != start) ? 3 : 0);
384 formatStr[pos] = 's';
385 return pos + 1;