Check in the pristine copy of ICU 4.6

The following directories we don't use are removed:

   as_is
   packaging
   source/extra
   source/sample
   source/layout
   source/layoutex

We need 4.6 for IDN update among other things.

We'll apply some patches on top of this. Once we're done, we'll
turn the 'knob' in DEPS file to use this instead of ICU 4.2.1

BUG=61514
TEST=NONE (yet)



Review URL: http://codereview.chromium.org/5516007

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@68397 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Pre-generate platform.h for Linux and Mac.


Generate platform.h on Linux and Mac with 'runConfigure Linux' and
'runConfigure MacOSX' in a clean tree of ICU 4.6.

Add them as plinux.h and pmac.h to source/common/unicode.

Modify ptypes.h to refer to them instead of platform.h (by applying
patches/platform.patch)

TBR=brettw
BUG=61514
TEST=None


Review URL: http://codereview.chromium.org/5963002

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@69841 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Patch the pre-generated pmac.h the same way as it's patched in ICU 4.2

This is 1) to make it work with older versions of Mac OS 
        2) to make all symbols invisible, which cuts down the
	   download size. (see the original cl for ICU 4.2.1
	at http://codereview.chromium.org/281006 as well as
	the ICU bug on the issue at 
	http://bugs.icu-project.org/trac/ticket/8248 )

BUG=61514
TEST=NONE

Review URL: http://codereview.chromium.org/6063003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@69889 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove unihan collation rules from zh/ja/ko collation files. 

This is the same patch as we used for ICU 4.2.1.


BUG=61514
TEST=NONE
Review URL: http://codereview.chromium.org/6070005

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@69912 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Apply the converter patches for ICU 4.2.1 to ICU 4.6

It requires a couple of minor changes, but is essentially the same change
we've used in ICU 4.2.1.

BUG=61514
TEST=None (yet)
Review URL: http://codereview.chromium.org/6010003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@69920 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add customized ICU data build files to include only locale data
we need.

BUG=61514
TEST=NONE (yet)


Review URL: http://codereview.chromium.org/6011015

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@71250 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Copy the build files for ICU 4.2 to ICU 4.6. These will be 
revised as necessary for ICU 4.6

BUG=61514
TEST=NONE



git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@71256 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Tweak ICU data build files to include 'nominal abridged locale data' (language
name, exemplar character set, layout direction) for 14 more
locales.

BUG=61514
TEST=NONE

Review URL: http://codereview.chromium.org/6323009

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@71863 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Tweak ICU locale build files. No material change in this CL. The actual
change will be made in the following CL for locale data files.


BUG=61514
TEST=NONE

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@71868 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add abridged locale files for locales Chrome is not localized to for which
Chrome need to know only a few things (native language name,
exemplar character set, layout direction).

There are 47 locales in this category. The patch file is patches/locale2.patch.

BUG=61514
TEST=NONE
Review URL: http://codereview.chromium.org/6342009

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@71873 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Local changes to ICU 4.6 locale files

Exemplar character set changes : zh, ja, Indic languages
Language name changes/additions: da, sw, fil, am
Region name changes/additions: am, fil, sw

BUG=61514
TEST=NONE

Review URL: http://codereview.chromium.org/6351009

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@71906 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
resource bundle build changes.

1. Do not include any resource bundles for rbnf (rule-based number formatting) and currency.
They're not used. In the future when they become necessary (e.g. web store client-side UI?),
we can add them back.

2. Only include rfc3491 string prep file for IDNA 2003 handling and drop other stringprep
   files (NFS, SNMP, SASL, LDAP, etc).


3. {region,zone,lang}/reslocal.mk files are updated to list only resource files that
are actually available. What's available in {region,zone,lang} directories are different from
locales directory.

#1 and #2 will save us about 1.2 MB (uncompressed). 

BUG=61514
TEST=NONE

Review URL: http://codereview.chromium.org/6347012

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72656 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
ICU data build configuration changes.

This patch has data build changes that cannot be controlled by editing data/*/*local.mk files (see patches/locale3.patch) and is not covered by 
segmentation.patch, converters.patch and brkiter.patch

 - specifies '-R' option for genrb to exclude collation rule files (~200kB saving).
 - excludes coll/invuca.icu (~300kB saving)
 - excludes unames.icu ( ~200kB saving)
 - exclude two hard-coded EBCDIC converters ( ~ 10kB saving)

BUG=61514
TEST=NONE


Review URL: http://codereview.chromium.org/6314020

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72660 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Update the converter patch.

Instead of removing ucmebcdic.mk, set UCM_EBCDIC_SOURCE to empty in ucmlocal.mk 





git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72715 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Correct data/lang/{sw,fil}.txt.

There were duplicate entries in sw.txt and the incorrect name for tl in fil.txt.

BUG=61514
TEST=NONE

Review URL: http://codereview.chromium.org/6341010

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72722 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Check in Chinese/Japanese dictionary (cjdict.txt) that we use for the
segmentation and cc_cedict.txt along with LICENSE files.

BUG=61514
TEST=NONE


Review URL: http://codereview.chromium.org/6263016

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72725 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Breakiterator patch for ICU 4.6

word.txt : Chinese/Japanese segmentation rules, Hebrew-script-specific handling of U+0022, and
           splitting of FQDN into labels at '.'.
line.txt : Incorporated line_he and minor changes in CL, OP and ID definitions. 

brklocal.mk : build file changes to drop unnecessary brkitr rule files (e.g. word_ja.txt,
              line_he.txt)


BUG=61514
TEST=NONE


Review URL: http://codereview.chromium.org/6349014

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72730 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
CJK segmentation patch for ICU 4.6

This patch also requires brkitr.patch and data/brkitr/cjdict.txt 

BUG=61514
TEST=NONE


Review URL: http://codereview.chromium.org/6370014

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@72751 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
icu.gyp file for ICU 4.6 along with other build changes.

1. Add new files in ICU 4.6 to icu.gyp
2. Modify ICU's pkg_genc.c to generate '.S' file with a line to hide
   icudt_* symbol enclosed with #ifdef U_HIDE_DATA_SYMBOL
3. Modify icu.gyp to define U_HIDE_DATA_SYMBOL when we're not building
   shared_library build. This is the reverse of what we currently do
   on Linux. It's done this way to make my life a bit easier when
   pre-building/testing ICU data outside the Chrome tree.
   It's also done for Mac (which is always built without shared_library
   defined). 
4. For both Mac and Linux, check in 'icudt46l_dat.S' instead of 
   'icudt46l_dat.s'.

linux/icudt46l_dat.S reads:

.globl icudt46_dat
        .section .note.GNU-stack,"",%progbits
        .section .rodata
        .align 8
#ifdef U_HIDE_DATA_SYMBOL
        .hidden icudt46_dat
#endif
        .type icudt46_dat,%object
icudt46_dat:


mac/icudt46l_dat.S reads:

.globl _icudt46_dat
#ifdef U_HIDE_DATA_SYMBOL
        .private_extern _icudt46_dat
#endif
        .data
        .const
        .align 4
_icudt46_dat:



BUG=61514
TEST=Changes #2 - #4 were tested with the equivalent changes made to ICU 4.2.
1. On Mac, after building chrome/chromium, run the following:
  $ nm Chromium.app/Contents/Versions/11.0.656.0/Chromium\ Framework.framework/Chromium\ Framework | grep " [A-TV-Z] " |  egrep '(_4_|icudt)'

  Nothing should be found.


Review URL: http://codereview.chromium.org/5991004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@73411 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Remove synthetic_alias list in data/*/reslocal.mk

reslocal.mk files have a line 'FOO_SYNTHETIC_ALIAS' with in_ID, iw_IL, no_NO,
but we don't include the corresponding targets (id_ID, he_IL and nb_NO).
For now, make FOO_SYNTHETIC_ALIAS empty because we don't have a strong
need to include id_ID, he_IL and nb_NO.

This issue was found while building icudt DLL file on Windows. Linux/Mac
didn't complain, though.

This CL updates icudt assembly files for Linux/Mac with the above change
and adds icudt46l.dat and pre-built icudt46.dll for Windows.

BUG=61514
TEST=icudt_build runs fine on Windows with CL 6460007 patched in.
TBR=mark

Review URL: http://codereview.chromium.org/6312192

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@74202 4ff67af0-8c30-449e-8e8b-ad334ec8d88c