Lines Matching refs:relativeDayString
159 UnicodeString relativeDayString;
170 relativeDayString.setTo(theString, len);
173 if ( relativeDayString.length() > 0 && !fDatePattern.isEmpty() &&
176 // capitalize relativeDayString according to context for relative, set formatter no context
177 if ( u_islower(relativeDayString.char32At(0)) && fCapitalizationBrkIter!= NULL &&
181 // titlecase first word of relativeDayString
182 relativeDayString.toTitle(fCapitalizationBrkIter, fLocale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
195 if (relativeDayString.length() > 0) {
196 appendTo.append(relativeDayString);
203 if (relativeDayString.length() > 0) {
204 // Need to quote the relativeDayString to make it a legal date pattern
205 relativeDayString.findAndReplace(UNICODE_STRING("'", 1), UNICODE_STRING("''", 2)); // double any existing APOSTROPHE
206 relativeDayString.insert(0, APOSTROPHE); // add APOSTROPHE at beginning...
207 relativeDayString.append(APOSTROPHE); // and at end
208 datePattern.setTo(relativeDayString);
248 // first check whether text matches a relativeDayString
275 // Here we replace any relativeDayString in text with the equivalent date