23 * LocalUFormattedNumberPointer uresult(unumf_openResult(status)); 24 * 25 * // pass uresult.getAlias() to your number formatter 26 * 27 * int32_t length; 28 * const UChar* s = ufmtval_getString(unumf_resultAsValue(uresult.getAlias(), status), &length, status)); 29 * 30 * // The string result is in `s` with the given `length` (it is also NUL-terminated). 31 *
111 * UFieldPosition ufpos = {UNUM_GROUPING_SEPARATOR_FIELD, 0, 0}; 112 * while (unumf_resultNextFieldPosition(uresult, ufpos, &ec)) { 113 * // do something with ufpos. 114 * } 115 *
209 * LocalUFormattedNumberPointer uformatter(unumf_openResult(...)); 210 * // no need to explicitly call unumf_closeResult() 211 *