* LocalUFormattedNumberPointer uresult(unumf_openResult(status)); * * // pass uresult.getAlias() to your number formatter * * int32_t length; * const UChar* s = ufmtval_getString(unumf_resultAsValue(uresult.getAlias(), status), &length, status)); * * // The string result is in `s` with the given `length` (it is also NUL-terminated). *
* UFieldPosition ufpos = {UNUM_GROUPING_SEPARATOR_FIELD, 0, 0}; * while (unumf_resultNextFieldPosition(uresult, ufpos, &ec)) { * // do something with ufpos. * } *
* LocalUFormattedNumberPointer uformatter(unumf_openResult(...)); * // no need to explicitly call unumf_closeResult() *