开发者

ICU equivalent of strerror(3) for getting the message for a UErrorCode?

开发者 https://www.devze.com 2023-02-21 18:45 出处:网络
I\'ve tried RTM, but: give开发者_开发知识库n an ICU UErrorCode, how can I obtain the corresponding error message string?I.e., ICU\'s equivalent of strerror(3).const char *u_errorName(UErrorCode code)

I've tried RTM, but: give开发者_开发知识库n an ICU UErrorCode, how can I obtain the corresponding error message string? I.e., ICU's equivalent of strerror(3).


const char *u_errorName(UErrorCode code) is the C version of ErrorCode::errorName - but there isn't an "error message" that is anything more than the enum name. That's a great idea, though- I'd recommend to file a bug. Or, consider contributing the code and data? Ideally it would be a localized message…

0

精彩评论

暂无评论...
验证码 换一张
取 消