equal
deleted
inserted
replaced
258 } |
258 } |
259 } |
259 } |
260 } |
260 } |
261 return toString(); |
261 return toString(); |
262 } |
262 } |
|
263 /** |
|
264 * Applies convertion from european digits into arabic-indic digits |
|
265 * based on existing language settings |
|
266 * |
|
267 * @param str String which might contain european digits |
|
268 * @return A string identical with the provided string but with the |
|
269 * european digits (if any) converted to arabic-indic digits |
|
270 */ |
|
271 public static String formatDigits(String str) |
|
272 { |
|
273 return _formatDigits(str); |
|
274 } |
263 |
275 |
264 /*** ----------------------------- PRIVATE ---------------------------- */ |
276 /*** ----------------------------- PRIVATE ---------------------------- */ |
265 |
277 |
266 /** |
278 /** |
267 * Replace first occurrence of the string pattern in the replaced field. |
279 * Replace first occurrence of the string pattern in the replaced field. |
356 * @param format Date format. |
368 * @param format Date format. |
357 * @return date formatted as current locale String. |
369 * @return date formatted as current locale String. |
358 * |
370 * |
359 */ |
371 */ |
360 private native String _formatDate(long timeInMilliSecs); |
372 private native String _formatDate(long timeInMilliSecs); |
|
373 |
|
374 /** |
|
375 * Applies convertion from european digits into arabic-indic digits |
|
376 * based on existing language settings |
|
377 * |
|
378 * @param str String which might contain european digits |
|
379 * @return A string identical with the provided string but with the |
|
380 * european digits (if any) converted to arabic-indic digits |
|
381 */ |
|
382 private static native String _formatDigits(String str); |
361 } |
383 } |