[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kjs
From:       Harri Porten <porten () kde ! org>
Date:       2005-04-16 22:46:06
Message-ID: 20050416224606.50F273CA () office ! kde ! org
[Download RAW message or body]

CVS commit by porten: 

faking toLocalLowerCase and toLocalUpperCase by using their non-localized
counter parts


  M +5 -0      ChangeLog   1.60
  M +3 -2      interpreter.h   1.28
  M +4 -0      string_object.cpp   1.90
  M +2 -1      string_object.h   1.24


--- kdelibs/kjs/ChangeLog  #1.59:1.60
@@ -1,2 +1,7 @@
+2005-04-17  Harri Porten  <porten@kde.org>
+
+        * string_object.cpp: faking toLocalLowerCase and toLocalUpperCase
+        by using their non-localized counter parts
+
 2005-04-16  Harri Porten  <porten@kde.org>
 

--- kdelibs/kjs/interpreter.h  #1.27:1.28
@@ -463,4 +463,5 @@ namespace KJS {
     void clearException();
     Value exception() const { return _exception; }
+    // ### make const
     bool hadException();
 

--- kdelibs/kjs/string_object.cpp  #1.89:1.90
@@ -135,4 +135,6 @@ const ClassInfo StringPrototypeImp::info
   toLowerCase           StringProtoFuncImp::ToLowerCase DontEnum|Function       0
   toUpperCase           StringProtoFuncImp::ToUpperCase DontEnum|Function       0
+  toLocaleLowerCase     StringProtoFuncImp::ToLocaleLowerCase DontEnum|Function 0
+  toLocaleUpperCase     StringProtoFuncImp::ToLocaleUpperCase DontEnum|Function 0
 #
 # Under here: html extension, should only exist if KJS_PURE_ECMA is not defined
@@ -503,4 +505,5 @@ Value StringProtoFuncImp::call(ExecState
     break;
   case ToLowerCase:
+  case ToLocaleLowerCase: // FIXME: To get this 100% right we need to detect Turkish \
and change I to lowercase i without a dot.  for (i = 0; i < len; i++)
       s[i] = s[i].toLower();
@@ -508,4 +511,5 @@ Value StringProtoFuncImp::call(ExecState
     break;
   case ToUpperCase:
+  case ToLocaleUpperCase: // FIXME: To get this 100% right we need to detect Turkish \
and change i to uppercase I with a dot.  for (i = 0; i < len; i++)
       s[i] = s[i].toUpper();

--- kdelibs/kjs/string_object.h  #1.23:1.24
@@ -73,5 +73,6 @@ namespace KJS {
     enum { ToString, ValueOf, CharAt, CharCodeAt, Concat, IndexOf, LastIndexOf,
            Match, Replace, Search, Slice, Split,
-           Substr, Substring, FromCharCode, ToLowerCase, ToUpperCase
+           Substr, Substring, FromCharCode, ToLowerCase, ToUpperCase,
+           ToLocaleLowerCase, ToLocaleUpperCase
 #ifndef KJS_PURE_ECMA
            , Big, Small, Blink, Bold, Fixed, Italics, Strike, Sub, Sup,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic