if (pLength != nullptr) {
*pLength = readOnlyAlias.length();
}
+ // Note: this line triggers -Wreturn-local-addr, but it is safe because toTempString is
+ // defined to return memory owned by the ufmtval argument.
return readOnlyAlias.getBuffer();
}
priority = UNUM_ROUNDING_PRIORITY_STRICT;
offset++;
} else {
- U_ASSERT(offset < segment.length());
+ // Invalid digits option for fraction rounder
+ status = U_NUMBER_SKELETON_SYNTAX_ERROR;
+ return false;
}
if (offset < segment.length()) {
// Invalid digits option for fraction rounder