Change v8Locale to match proposal - constructor is different (takes settings object...
authorcira@chromium.org <cira@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 3 May 2011 20:43:51 +0000 (20:43 +0000)
committercira@chromium.org <cira@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 3 May 2011 20:43:51 +0000 (20:43 +0000)
commit5a9fa7a8c6b166dd2eb0f24564a1d26538b22ea6
tree3060b257c658fcd03a8a0ed953386566001ff6fc
parent1b833ff35eb4d3b57bbb86cd789a6b1fe87959e6
Change v8Locale to match proposal - constructor is different (takes settings object, not a plain string) and I've added derive method to it.

Added comments to i18n.js methods and properties, and util functions to check settings and locale validity.

Added LanguageMatcher class until ICU gets C implementation (in progress, but late for our current deadline). I added TODO to remove LanguageMatcher code.

TEST=Visit http://i18n.kaziprst.org/locale.html.
Review URL: http://codereview.chromium.org/6901141

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7768 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/extensions/experimental/experimental.gyp
src/extensions/experimental/i18n-extension.cc
src/extensions/experimental/i18n-locale.cc
src/extensions/experimental/i18n-locale.h
src/extensions/experimental/i18n.js
src/extensions/experimental/language-matcher.cc [new file with mode: 0644]
src/extensions/experimental/language-matcher.h [new file with mode: 0644]