The home of the ICU project source code.
Find a file
Jeff Genovy cffde97271
ICU-20042 Improve OOM handling in PluralRules class. (#20)
- PluralRules class doesn't handle out-of-memory (OOM) errors in some code paths.
- The clone and assignment operator (operator=) methods of construction don't take an error code  parameter, meaning that if an OOM error occurs during the constructor, it will not reported back to the caller, and the caller has no way to know that the object is in a half-constructed state.
- Using an internal status variable for these above cases.
- Changes to the various PluralRules helper classes to check for OOM as well.
- Using nullptr instead NULL.
- Using LocalPointer instead of raw new/delete in some cases.
- Need to set mRules to nullptr, otherwise we can end up with double deletes in the failure case. (Thanks to Andy for the review).
- Using default member initializers for class members to avoid dangling pointers. Also allows for using default constructors too.
2018-08-01 23:33:03 -07:00
icu4c ICU-20042 Improve OOM handling in PluralRules class. (#20) 2018-08-01 23:33:03 -07:00
icu4j Removes duplicate import statement. 2018-07-27 15:38:00 -07:00
tools ICU-20033 Add a top-level README.md (#11) 2018-08-01 17:56:55 -07:00
vendor/double-conversion ICU-11318 Adding instructions and todo items to double-conversion UPDATING.md 2018-02-16 02:07:05 +00:00
.appveyor.yml ICU-20032 re-enable Travis (#10) 2018-07-18 11:46:23 -07:00
.gitattributes ICU-20005 Update/clean-up the .gitattributes file after the automated conversion from the scripts. Also add some comments for others, and use the diff helpers for better diffs. 2018-07-19 17:15:51 -07:00
.gitignore ICU-13581 Update SVN ignore list for ARM UWP project file detritus. 2018-02-28 06:02:05 +00:00
.travis.yml ICU-20032 re-enable Travis (#10) 2018-07-18 11:46:23 -07:00
README.md ICU-20033 Add a top-level README.md (#11) 2018-08-01 17:56:55 -07:00

International Components for Unicode

This is the repository for the International Components for Unicode. The ICU project is under the stewardship of The Unicode Consortium.

ICU Logo

Build Status

Build Status
TravisCI Build Status
Win x64 Release Build status
Win x86 Release Build status

Subdirectories and Information

License

Please see ./icu4c/LICENSE (C and J are under an identical license file.)

Copyright © 2016 and later Unicode, Inc. and others. All Rights Reserved. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. Terms of Use and License