summaryrefslogtreecommitdiffstats
path: root/luni/src/main/native/libcore_icu_NativeBreakIterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'luni/src/main/native/libcore_icu_NativeBreakIterator.cpp')
-rw-r--r--luni/src/main/native/libcore_icu_NativeBreakIterator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/luni/src/main/native/libcore_icu_NativeBreakIterator.cpp b/luni/src/main/native/libcore_icu_NativeBreakIterator.cpp
index d93c229..5865081 100644
--- a/luni/src/main/native/libcore_icu_NativeBreakIterator.cpp
+++ b/luni/src/main/native/libcore_icu_NativeBreakIterator.cpp
@@ -55,14 +55,14 @@ public:
size_t charCount = env->GetStringLength(mString);
UErrorCode status = U_ZERO_ERROR;
ubrk_setText(mIt, mChars, charCount, &status);
- maybeThrowIcuException(env, status);
+ maybeThrowIcuException(env, "ubrk_setText", status);
}
BreakIteratorPeer* clone(JNIEnv* env) {
UErrorCode status = U_ZERO_ERROR;
jint bufferSize = U_BRK_SAFECLONE_BUFFERSIZE;
UBreakIterator* it = ubrk_safeClone(mIt, NULL, &bufferSize, &status);
- if (maybeThrowIcuException(env, status)) {
+ if (maybeThrowIcuException(env, "ubrk_safeClone", status)) {
return NULL;
}
BreakIteratorPeer* result = new BreakIteratorPeer(it);
@@ -120,7 +120,7 @@ static jint makeIterator(JNIEnv* env, jstring locale, UBreakIteratorType type) {
return 0;
}
UBreakIterator* it = ubrk_open(type, localeChars.c_str(), NULL, 0, &status);
- if (maybeThrowIcuException(env, status)) {
+ if (maybeThrowIcuException(env, "ubrk_open", status)) {
return 0;
}
return (new BreakIteratorPeer(it))->toAddress();