X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Ficu%2Fsource%2Fi18n%2Fcsrmbcs.h;h=9ea9d8f8ee03388087059139b9a8cba84fef58e2;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=371889a1e610358d8ca66da31ef906750d04bc35;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/icu/source/i18n/csrmbcs.h b/src/third_party/icu/source/i18n/csrmbcs.h index 371889a..9ea9d8f 100644 --- a/src/third_party/icu/source/i18n/csrmbcs.h +++ b/src/third_party/icu/source/i18n/csrmbcs.h @@ -1,6 +1,6 @@ /* ********************************************************************** - * Copyright (C) 2005-2008, International Business Machines + * Copyright (C) 2005-2012, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ @@ -58,7 +58,7 @@ protected: *
* bits 8-15: The match reason, an enum-like value. */ - int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen); + int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const; public: @@ -71,7 +71,7 @@ public: const char *getName() const = 0; const char *getLanguage() const = 0; - int32_t match(InputText* det) = 0; + UBool match(InputText* input, CharsetMatch *results) const = 0; /** * Get the next character (however many bytes it is) from the input data @@ -85,7 +85,7 @@ public: * being iterated over. * @return True if a character was returned, false at end of input. */ - virtual UBool nextChar(IteratedChar *it, InputText *textIn) = 0; + virtual UBool nextChar(IteratedChar *it, InputText *textIn) const = 0; }; @@ -98,9 +98,9 @@ class CharsetRecog_sjis : public CharsetRecog_mbcs { public: virtual ~CharsetRecog_sjis(); - UBool nextChar(IteratedChar *it, InputText *det); + UBool nextChar(IteratedChar *it, InputText *det) const; - int32_t match(InputText *det); + UBool match(InputText* input, CharsetMatch *results) const; const char *getName() const; const char *getLanguage() const; @@ -122,14 +122,14 @@ public: const char *getName() const = 0; const char *getLanguage() const = 0; - int32_t match(InputText* det) = 0; + UBool match(InputText* input, CharsetMatch *results) const = 0; /* * (non-Javadoc) * Get the next character value for EUC based encodings. * Character "value" is simply the raw bytes that make up the character * packed into an int. */ - UBool nextChar(IteratedChar *it, InputText *det); + UBool nextChar(IteratedChar *it, InputText *det) const; }; /** @@ -144,7 +144,7 @@ public: const char *getName() const; const char *getLanguage() const; - int32_t match(InputText *det); + UBool match(InputText* input, CharsetMatch *results) const; }; /** @@ -159,7 +159,7 @@ public: const char *getName() const; const char *getLanguage() const; - int32_t match(InputText *det); + UBool match(InputText* input, CharsetMatch *results) const; }; /** @@ -172,12 +172,12 @@ class CharsetRecog_big5 : public CharsetRecog_mbcs public: virtual ~CharsetRecog_big5(); - UBool nextChar(IteratedChar* it, InputText* det); + UBool nextChar(IteratedChar* it, InputText* det) const; const char *getName() const; const char *getLanguage() const; - int32_t match(InputText *det); + UBool match(InputText* input, CharsetMatch *results) const; }; @@ -191,12 +191,12 @@ class CharsetRecog_gb_18030 : public CharsetRecog_mbcs public: virtual ~CharsetRecog_gb_18030(); - UBool nextChar(IteratedChar* it, InputText* det); + UBool nextChar(IteratedChar* it, InputText* det) const; const char *getName() const; const char *getLanguage() const; - int32_t match(InputText *det); + UBool match(InputText* input, CharsetMatch *results) const; }; U_NAMESPACE_END