summaryrefslogtreecommitdiffstats
path: root/luni/src/main/native/NativeBreakIterator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make all filenames match their classes.Elliott Hughes2011-03-031-144/+0
| | | | Change-Id: I2c9f95a27ee3881fc609e3e4f1468205c701215d
* More icu4jni reshuffling.Elliott Hughes2010-10-011-3/+2
| | | | | Bug: 3045778 Change-Id: Iafb367f97d1fb169c6106adad0525cfcc0e10f25
* Remove most of our C-style casts.Elliott Hughes2010-08-121-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After being burned by an incorrect C-style cast that cast away const, I've been keen to remove them all and turn on -Wold-style-cast. This patch doesn't get us that far, but it does kill the majority of our C-style casts. In turn, the majority of the casts that it removes are the ones from our tables of native methods to be registered. The new NATIVE_METHOD macro also _enforces_ our convention of using the "Class_nativeMethod" style of naming. Mostly this works out fine. In some cases (most notably ExpatParser and ExpatAttributes) I've had to un-overload a few functions, but I don't like overloading anyway, and in the particular case of a native method, where the stack trace doesn't show a line number, overloading makes it one step harder to work out which native method you're actually in. So good riddance to that. The only unfortunate case is Math.copySign, where there are two overloads corresponding to copysign(3) and copysignf(3). I had to add an extra layer of indirection there. In my defense, we've never shipped these functions before, they're unlikely to become anyone's hotspot, and the right fix is to be doing such trivial work on the Java side anyway, with intrinsics making the conversion between float/double and int/long cheap. This patch also replaces other C-style casts, primarily in "OSNetworkSystem.cpp". This patch also removes unnecessary uses of the "struct" keyword. This patch also fixes a "may be used uninitialized" warning (now error) in the sim build for "ICU.cpp". The remaining C-style casts are in the hairy float-parsing code. That stuff -- and turning on -Wold-style-cast -- will have to wait for another day. Change-Id: I9b3ee14aefd4676f980f6a7ca757595d78d80e6a
* Remove more of our C-style casts, fix more of our native method names.Elliott Hughes2010-07-221-30/+30
| | | | Change-Id: I08d7915e22faf091489171240d2f9bf8b3acecca
* Stop using GetStringChars/ReleaseStringChars.Elliott Hughes2010-06-221-4/+5
| | | | | | | | | | Also fix unused variable warnings in "ExpatParser.cpp". This fixes one actual bug in the regular expression code where we weren't returning after throwing an exception from JNI, in a case where executing the remaining code in the native method would cause a crash. Change-Id: Ib5ce7ea9a3b6476cf47bda2384d5ba43579c785a
* Enhance ScopedUtfChars to include the null check most callers were missing.Elliott Hughes2010-05-261-1/+1
| | | | | | | | | | | Also switch most non-users over to ScopedUtfChars. Also ensure all users check that ScopedUtfChars was successful in getting the chars. Also rewrite ObjectInputStream and ObjectOutputStream without duplication. Change-Id: I929d00fe3ff50b303cba4a2cf2269355e9fef5f9
* Enable -Wall -Wextra for libcore and cleanup all but one warningBrian Carlstrom2010-05-071-3/+3
| | | | Change-Id: Ied76662c470ba878cec61189acf29f5cbbd4ccd4
* Merge awt-kernel, icu, luni-kernel, prefs, security-kernel, x-net into luniPeter Hallam2010-05-041-0/+143
Merge xml except xmlpull and kxml into luni