This library is used by ICU4C to perform double-to-string and string-to-double conversions.
IMPORTANT: Please start with a clean working directory before continuing (no uncommitted changes).
Go to https://github.com/google/double-conversion/releases/latest/ to determine the latest version number. You can also pull from a branch instead of a tag.
pull-from-upstream.sh as below:
The script runs in 4 steps.
You will be prompted to download the tarball of the upstream tag/branch. If confirmed, the script will download the file to a temp directory and unpack it there.
At this point, the ICU source tree is still pristine.
The script computes the ICU patches on double-conversion (diff between the ICU4C source tree and the vendor source tree), then copies in the new version of the files that it downloaded, and apply the ICU patches on top of those new files.
Look in the command output. If you see a message like
Hunk #6 NOT MERGED, it means that you have to open the file manually and resolve the merge conflict.
It is also possible that upstream added, deleted, or renamed files. In this situation, you need to spend extra time touching up these changes in ICU4C.
At this point, the ICU4C source tree is changed, and the vendor directory is still pristine.
Here, the script copies the pristine source from the temp directory to the vendor directory. You should always do this unless you aborted one of the previous steps.
The script will ask whether to delete its temp directory. If you want to keep the temp directory to refer to the ICU patches, for example, you can skip this step.
Look over any ICU patches in the icu4c/i18n version of the code files; they should be marked clearly with “ICU PATCH” comments. Make sure that the patches are still needed and remove them if possible.
Build and test ICU4C, and send the PR for review.