Home
last modified time | relevance | path

Searched refs:u_strlen (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/third_party/icu/icu4c/source/test/cintltst/
Dcmsgtst.c126 patternlength=u_strlen(testCasePatterns[i]); in MessageFormatTest()
157 patternlength=u_strlen(testCasePatterns[i]); in MessageFormatTest()
186 int32_t patternLength = u_strlen(testCasePatterns[0]); in MessageFormatTest()
204 patternLength = ((i & 1) == 0) ? u_strlen(testCasePatterns[i]) : -1; in MessageFormatTest()
297 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleMessageFormat()
303 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat()
323 u_strlen(pattern), in TestSampleMessageFormat()
334 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23); in TestSampleMessageFormat()
353 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestSampleMessageFormat()
359 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 500.00); in TestSampleMessageFormat()
[all …]
Dcdtdptst.c64 … fullFmt= udat_open(UDAT_PATTERN, UDAT_PATTERN,"en_US",NULL,0,pattern, u_strlen(pattern),&status); in TestTwoDigitYearDSTParse()
73 … fmt= udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US", NULL, 0,pattern, u_strlen(pattern), &status); in TestTwoDigitYearDSTParse()
79 d = udat_parse(fmt, s, u_strlen(s), &pos, &status); in TestTwoDigitYearDSTParse()
136 d = udat_parse(f, s, u_strlen(s), &pos, &status); in TestPartialParse994()
172 udat_applyPattern(format, FALSE, pat, u_strlen(pat)); in tryPat994()
174 date = udat_parse(format, str, u_strlen(str), &pos, &status); in tryPat994()
207 … format = udat_open(UDAT_PATTERN, UDAT_PATTERN, NULL, NULL, 0,pattern, u_strlen(pattern), &status); in TestRunTogetherPattern985()
217 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); in TestRunTogetherPattern985()
260 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); in TestCzechMonths459()
275 d = udat_parse(fmt, juneStr, u_strlen(juneStr), &pos, &status); in TestCzechMonths459()
[all …]
Dcapitst.c326 …doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "ab < abc comparison… in TestProperty()
331 …doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "ab < AB comparison … in TestProperty()
336 …doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_GREATER, "black-bird > bla… in TestProperty()
341 …doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_LESS, "black bird < black-… in TestProperty()
346 …doStrcoll(col, source, u_strlen(source), target, u_strlen(target), UCOL_GREATER, "Hello > hello co… in TestProperty()
463 …col1 = ucol_openRules(ruleset1, u_strlen(ruleset1), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL,&sta… in TestRuleBasedColl()
472 …col2 = ucol_openRules(ruleset2, u_strlen(ruleset2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &s… in TestRuleBasedColl()
498 col4=ucol_openRules(rule2, u_strlen(rule2), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestRuleBasedColl()
516 …col1 = ucol_openRules(ruleset1, u_strlen(ruleset1), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &st… in TestRuleBasedColl()
553 …col1 = ucol_openRules(ruleset1, u_strlen(ruleset1), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH, NULL, &st… in TestRuleBasedColl()
[all …]
Dccurrtst.c140 compareResult = ucol_strcoll(c, source, u_strlen(source), target, u_strlen(target)); in currTest()
144 sortklen=ucol_getSortKey(c, source, u_strlen(source), NULL, 0); in currTest()
146 ucol_getSortKey(c, source, u_strlen(source), sortKey1, sortklen+1); in currTest()
148 sortklen=ucol_getSortKey(c, target, u_strlen(target), NULL, 0); in currTest()
150 ucol_getSortKey(c, target, u_strlen(target), sortKey2, sortklen+1); in currTest()
Dcdtrgtst.c94 udat_applyPattern(df, TRUE, temp, u_strlen(temp)); in Test4029195()
99 d1=udat_parse(df, todayS, u_strlen(todayS), &parsepos, &status); in Test4029195()
165 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL, NULL, 0, pat, u_strlen(pat), &status); in Test4056591()
183 got = udat_parse(def, s, u_strlen(s), 0, &status); in Test4056591()
217 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917()
230 def = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,tzID,-1,pattern, u_strlen(pattern),&status); in Test4059917()
291 …formatter = udat_open(UDAT_PATTERN,UDAT_PATTERN,"en_US",tzID,-1,pattern, u_strlen(pattern), &statu… in Test4060212()
293 myDate = udat_parse(formatter, dateString, u_strlen(dateString), &pos, &status); in Test4060212()
305 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status); in Test4060212()
336 df = udat_open(UDAT_PATTERN,UDAT_PATTERN,NULL,NULL,0,pattern, u_strlen(pattern),&status); in Test4061287()
[all …]
Dcitertst.c101 ucol_setOffset(titer, u_strlen(pattern), &status); in TestBug672()
177 ucol_setOffset(titer, u_strlen(pattern), &status); in TestBug672Normalize()
253 iter=ucol_openElements(en_us, source, u_strlen(source), &status); in TestUnicodeChar()
320 iter=ucol_openElements(th_th, source, u_strlen(source), &status); in TestNormalizedUnicodeChar()
435 iter=ucol_openElements(coll, test1, u_strlen(test1), &status); in TestPrevious()
450 c1 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestPrevious()
462 iter=ucol_openElements(c1, source, u_strlen(source), &status); in TestPrevious()
474 c2 = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestPrevious()
483 iter=ucol_openElements(c2, source, u_strlen(source), &status); in TestPrevious()
494 c3 = ucol_openRules(rule, u_strlen(rule), UCOL_DEFAULT, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestPrevious()
[all …]
Dutexttst.c108 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
129 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
151 c = utext_next32From(uta, u_strlen(uString)); in TestAPI()
165 b = utext_moveIndex32(uta, u_strlen(uString)-1); in TestAPI()
168 TEST_ASSERT(i==u_strlen(uString)); in TestAPI()
173 TEST_ASSERT(i==u_strlen(uString)); in TestAPI()
232 TEST_ASSERT(i == u_strlen(uString)); in TestAPI()
238 TEST_ASSERT(i == u_strlen(uString)); in TestAPI()
252 TEST_ASSERT(i == u_strlen(uString2Ptr)); in TestAPI()
Didnatest.c81 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0; in testAPI()
88 tSrcLen = u_strlen(src); in testAPI()
146 destLen = func(src,u_strlen(src),dest,destLen+1,options, &parseError, &status); in testAPI()
168 …destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &st… in testAPI()
212 …destLen = func(src,u_strlen(src),dest,destLen+1,options | UIDNA_USE_STD3_RULES, &parseError, &stat… in testAPI()
615 u_strncat(source,unicodeIn[i], u_strlen(unicodeIn[i])); in TestCompare()
620 srcLen = u_strlen(src); in TestCompare()
625 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in TestCompare()
629 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE); in TestCompare()
631 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE); in TestCompare()
[all …]
Dcustrtst.c117 …if( u_strlen(dataTable[0][0])!= u_strlen(dataTable[0][3]) || u_strlen(dataTable[0][0]) == u_strlen in TestStringFunctions()
206 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
217 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
229 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
270 int32_t dataSize = (int32_t)(u_strlen(dataTable[i][j]) + 1); in TestStringFunctions()
449 len1=u_strlen(strings[i]); in TestStringFunctions()
450 len2=u_strlen(strings[i+1]); in TestStringFunctions()
586 if (u_strcspn(testString, f) != u_strlen(testString)) { in TestStringSearching()
589 if (u_strcspn(testString, fg) != u_strlen(testString)) { in TestStringSearching()
592 if (u_strcspn(testString, gf) != u_strlen(testString)) { in TestStringSearching()
[all …]
Dcnmdptst.c79 fmt= unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status); in TestPatterns()
132 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status); in TestQuotes()
161 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status); in TestQuotes()
256 fmt=unum_open(UNUM_IGNORE,upat, u_strlen(upat), "en_US",NULL, &status); in TestExponential()
263 lneed= u_strlen(upat) + 1; in TestExponential()
288 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential()
289 if (ppos== u_strlen(str)) { in TestExponential()
318 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential()
319 if (ppos== u_strlen(str)) { in TestExponential()
354 fmt = unum_open(UNUM_IGNORE,pattern, u_strlen(pattern), "en_US",NULL, &status); in TestCurrencySign()
[all …]
Dcmsccoll.c93 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); in IncompleteCntTest()
104 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
119 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in IncompleteCntTest()
131 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
346 sizem = u_strlen(m);
669 iter = ucol_openElements(coll, t[u]->NFD, u_strlen(t[u]->NFD), &status); in TestComposeDecompose()
676 ucol_setText(iter, t[u]->NFC, u_strlen(t[u]->NFC), &status); in TestComposeDecompose()
679 ucol_setText(iter, t[u]->NFD, u_strlen(t[u]->NFD), &status); in TestComposeDecompose()
884 myCollation = ucol_openRules(gRules, u_strlen(gRules), UCOL_OFF, UCOL_TERTIARY,NULL, &status); in TestCase()
899 iter=ucol_openElements(myCollation, testCase[i], u_strlen(testCase[i]), &status); in TestCase()
[all …]
Dcbiapts.c179 word = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
190 sentence = ubrk_open(UBRK_SENTENCE, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
199 line = ubrk_open(UBRK_LINE, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
208 character = ubrk_open(UBRK_CHARACTER, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
217 bogus = ubrk_open((UBreakIteratorType)5, "en_US", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
339 b = ubrk_open(UBRK_WORD, "fr_FR", text, u_strlen(text), &status); in TestBreakIteratorCAPI()
402 someIterators[0] = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorSafeClone()
408 someIterators[1] = ubrk_open(UBRK_WORD, "th_TH", text, u_strlen(text), &status); in TestBreakIteratorSafeClone()
534 someIterators[0] = ubrk_open(UBRK_WORD, "en_US", text, u_strlen(text), &status); in TestBreakIteratorClone()
540 someIterators[1] = ubrk_open(UBRK_WORD, "th_TH", text, u_strlen(text), &status); in TestBreakIteratorClone()
[all …]
Dcdattst.c239 d1=udat_parse(def, temp, u_strlen(temp), &parsepos, &status); in TestDateFormat()
257 d1=udat_parse(def, temp, u_strlen(temp), NULL, &status); in TestDateFormat()
271 fr_pat=udat_open(UDAT_PATTERN, UDAT_PATTERN,"fr_FR",NULL,0,temp, u_strlen(temp), &status); in TestDateFormat()
283 udat_applyPattern(def1, FALSE, temp, u_strlen(temp)); in TestDateFormat()
486 } else if ( u_strstr(strDate, *monthPtnPtr) == NULL || dtpatLen != u_strlen(strDate) ) { in TestRelativeDateFormat()
493 } else if ( u_strstr(strTime, minutesPatn) == NULL || dtpatLen != u_strlen(strTime) ) { in TestRelativeDateFormat()
500 …strDate) == NULL || u_strstr(strDateTime, strTime) == NULL || dtpatLen != u_strlen(strDateTime) ) { in TestRelativeDateFormat()
503 …udat_applyPatternRelative(fmtRelDateTime, strDate, u_strlen(strDate), newTimePatn, u_strlen(newTim… in TestRelativeDateFormat()
516 …udat_applyPatternRelative(fmtRelDateTime, strDate, u_strlen(strDate), strTime, u_strlen(strTime), … in TestRelativeDateFormat()
720 udat_applyPattern(def, FALSE, pattern, u_strlen(pattern)); in TestSymbols()
[all …]
Dcnumtst.c352 d1=unum_parseDouble(cur_def, result, u_strlen(result), &parsepos, &status); in TestNumberFormat()
357 …log_err("parse of '%s' failed. Parsepos=%d. The error is : %s\n", aescstrdup(result,u_strlen(resu… in TestNumberFormat()
405 d1=unum_parseDoubleCurrency(cur_def, result, u_strlen(result), &parsepos, temp2, &status); in TestNumberFormat()
407 …seDoubleCurrency '%s' failed. The error is : %s\n", aescstrdup(result, u_strlen(result)), myError… in TestNumberFormat()
429 resultlength=u_strlen(temp1); in TestNumberFormat()
455 d1=unum_parseDouble(cur_def, temp1, u_strlen(temp1), &parsepos, &status); in TestNumberFormat()
487 l1=unum_parse(per_fr, result, u_strlen(result), &parsepos, &status); in TestNumberFormat()
504 pattern=unum_open(UNUM_IGNORE,temp1, u_strlen(temp1), NULL, NULL,&status); in TestNumberFormat()
554 cur_frpattern=unum_open(UNUM_IGNORE,result, u_strlen(result), "fr_FR",NULL, &status); in TestNumberFormat()
592 unum_applyPattern(cur_frpattern, FALSE, result, u_strlen(result),NULL,NULL); in TestNumberFormat()
[all …]
Dcbiditransformtst.c177 srcLen = u_strlen(src); in testAutoDirection()
187 ubidi_writeReverse(expected, u_strlen(expected), temp, STR_CAPACITY, in testAutoDirection()
204 uint32_t i = 0, j, length = u_strlen(str); in shapeDigits()
218 uint32_t i = 0, j, length = u_strlen(expected), index; in shapeLetters()
/third_party/icu/icu4c/source/test/iotest/
Dtrnstst.c196 len= (int)fread(ubuf, sizeof(UChar), u_strlen(compare), infile); in TestTranslitFileOut()
198 if(len != u_strlen(compare)) in TestTranslitFileOut()
200 log_err("Wanted %d UChars from file, got %d\n", u_strlen(compare), len); in TestTranslitFileOut()
204 if(u_strlen(compare) != u_strlen(ubuf)) in TestTranslitFileOut()
206 log_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), len); in TestTranslitFileOut()
293 if(u_strlen(compare) != u_strlen(ubuf)) in TestTranslitStringOut()
295 …_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), u_strlen(ubuf)); in TestTranslitStringOut()
Dfiletst.c511 readSize = u_strlen(buffer); in TestfgetsBuffers()
513 …log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitio… in TestfgetsBuffers()
556 readSize = u_strlen(buffer); in TestfgetsBuffers()
558 …log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitio… in TestfgetsBuffers()
589 readSize = u_strlen(buffer); in TestfgetsBuffers()
591 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), 1); in TestfgetsBuffers()
676 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestfgetsLineCount()
727 u_file_write(testUStr[lineIdx], u_strlen(testUStr[lineIdx]), myFile); in TestfgetsNewLineHandling()
746 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestfgetsNewLineHandling()
805 if (buffer[u_strlen(buffer)+1] != 0xBEEF) { in TestLineCount()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dsrchtest.cpp73 rules.append(extrarules, u_strlen(extrarules)); in StringSearchTest()
79 rules.append(extrarules, u_strlen(extrarules)); in StringSearchTest()
876 text.setTo(temp, u_strlen(temp)); in TestBreakIterator()
879 pattern.setTo(temp, u_strlen(temp)); in TestBreakIterator()
916 text.setTo(temp, u_strlen(temp)); in TestBreakIterator()
918 pattern.setTo(temp, u_strlen(temp)); in TestBreakIterator()
1009 text.setTo(temp, u_strlen(temp)); in TestOverlap()
1012 pattern.setTo(temp, u_strlen(temp)); in TestOverlap()
1053 text.setTo(temp, u_strlen(temp)); in TestCollator()
1056 pattern.setTo(temp, u_strlen(temp)); in TestCollator()
[all …]
/third_party/icu/icu4c/source/samples/citer/
Dciter.cpp61 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
87 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
94 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
128 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
151 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
/third_party/skia/third_party/externals/icu/source/samples/citer/
Dciter.cpp61 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
87 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
94 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
128 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
151 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
/third_party/flutter/skia/third_party/externals/icu/source/samples/citer/
Dciter.cpp61 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
87 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
94 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
128 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
151 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
/third_party/icu/docs/userguide/format_parse/messages/
Dexamples.md137 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
143 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern),
150 u_formatMessage( "en_US", pattern, u_strlen(pattern), result,
166 length = u_strlen ( unichars );
217 u_strlen(LANG_ATTRIB),
224 u_formatMessage("en_US",LANG_ATTRIB,u_strlen(LANG_ATTRIB),
301 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
308 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern),
315 u_formatMessage( "en_US", pattern, u_strlen(pattern), result,
355 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern),
[all …]
/third_party/skia/third_party/externals/icu/source/samples/cal/
Dcal.c457 lens[i] = u_strlen(days[i]); in print_month()
462 pad = width - u_strlen(s); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
580 lens[i] = u_strlen(days[i]); in print_year()
588 pad = 2 * width + MARGIN_WIDTH - u_strlen(s); in print_year()
605 pad = width - u_strlen(months[i]); in print_year()
609 pad = width - u_strlen(months[i + 1]); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
725 pad = lens[right_current] - u_strlen(s); in print_year()
/third_party/flutter/skia/third_party/externals/icu/source/samples/cal/
Dcal.c457 lens[i] = u_strlen(days[i]); in print_month()
462 pad = width - u_strlen(s); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
580 lens[i] = u_strlen(days[i]); in print_year()
588 pad = 2 * width + MARGIN_WIDTH - u_strlen(s); in print_year()
605 pad = width - u_strlen(months[i]); in print_year()
609 pad = width - u_strlen(months[i + 1]); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
725 pad = lens[right_current] - u_strlen(s); in print_year()
/third_party/icu/icu4c/source/samples/cal/
Dcal.c457 lens[i] = u_strlen(days[i]); in print_month()
462 pad = width - u_strlen(s); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
580 lens[i] = u_strlen(days[i]); in print_year()
588 pad = 2 * width + MARGIN_WIDTH - u_strlen(s); in print_year()
605 pad = width - u_strlen(months[i]); in print_year()
609 pad = width - u_strlen(months[i + 1]); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
725 pad = lens[right_current] - u_strlen(s); in print_year()

12345678910>>...13