Change WebLocalizableStrings to take UTF-8 C strings
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 05:29:02 +0000 (05:29 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 05:29:02 +0000 (05:29 +0000)
commit4c04fb54de4a39eca2de952dcd2257e3e6e20f9e
treee69ece971dd52f0c9a36497cfb7fc0171e234d70
parent9ec1a0bdb942359384016967920ed830a5f1696e
     Change WebLocalizableStrings to take UTF-8 C strings

         This matches the way things work on the Mac, and will allow source
         files containing localizable strings to be shared between Mac and
         Windows. The old functions have not been removed for compatibility
         reasons, but are now just wrappers around the new UTF-8 functions.

         Reviewed by Ada.

         * WebKit.vcproj/WebKit.def: Added new functions.
         * WebKit.vcproj/WebKit_debug.def: Ditto.
         * WebLocalizableStrings.cpp:
         (copyLocalizedStringFromBundle): Changed to take a WebCore::String
         representing the key.
         (localizedString): Refactored from WebLocalizedString. Takes a
         WebCore::String representing the key.
         (localizedLPCTSTR): Ditto for WebLocalizedLPCTSTR.
         (WebLocalizedStringUTF8): Added. Takes a UTF-8 C string as the key.
         (WebLocalizedLPCTSTRUTF8): Ditto.
         (WebLocalizedString): Changed to call localizedString.
         (WebLocalizedLPCTSTR): Changed to call localizedLPCTSTR.
         * WebLocalizableStrings.h: Changed macros to use the new UTF-8
         functions.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/win/ChangeLog
WebKit/win/WebKit.vcproj/WebKit.def
WebKit/win/WebKit.vcproj/WebKit_debug.def
WebKit/win/WebLocalizableStrings.cpp
WebKit/win/WebLocalizableStrings.h