Bug 843992 - rename nsJISX4501 to nsJISX4051. r=masayuki
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Wed, 27 Feb 2013 16:04:38 +0900
changeset 123114 25a2e989162c95c4f1296e2977dedcbf9e49c8bb
parent 123113 4cf6c8896c93f37fb8da0bcdf5b0da7fedd1949b
child 123115 940a3216517acc793f423deaf0f01414de4257b8
push id23682
push userm_kato@ga2.so-net.ne.jp
push dateWed, 27 Feb 2013 07:17:42 +0000
treeherdermozilla-inbound@25a2e989162c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs843992
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 843992 - rename nsJISX4501 to nsJISX4051. r=masayuki
intl/build/nsI18nModule.cpp
intl/lwbrk/public/nsILineBreaker.h
intl/lwbrk/src/Makefile.in
intl/lwbrk/src/jisx4051class.h
intl/lwbrk/src/jisx4501class.h
intl/lwbrk/src/nsJISx4051LineBreaker.cpp
intl/lwbrk/src/nsJISx4051LineBreaker.h
intl/lwbrk/src/nsJISx4501LineBreaker.cpp
intl/lwbrk/src/nsJISx4501LineBreaker.h
intl/lwbrk/src/nsLWIMP.h
intl/lwbrk/tools/anzx4051.html
intl/lwbrk/tools/anzx4051.pl
intl/lwbrk/tools/anzx4501.html
intl/lwbrk/tools/anzx4501.pl
intl/lwbrk/tools/jisx4051class.txt
intl/lwbrk/tools/jisx4051simp.txt
intl/lwbrk/tools/jisx4501class.txt
intl/lwbrk/tools/jisx4501simp.txt
--- a/intl/build/nsI18nModule.cpp
+++ b/intl/build/nsI18nModule.cpp
@@ -2,17 +2,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "mozilla/ModuleUtils.h"
 
 // lwbrk
 #include "nsLWBrkCIID.h"
-#include "nsJISx4501LineBreaker.h"
+#include "nsJISx4051LineBreaker.h"
 #include "nsSampleWordBreaker.h"
 
 #include "nsSemanticUnitScanner.h"
 
 // unicharutil
 #include "nsCategoryImp.h"
 #include "nsUnicharUtilCIID.h"
 #include "nsCaseConversionImp2.h"
--- a/intl/lwbrk/public/nsILineBreaker.h
+++ b/intl/lwbrk/public/nsILineBreaker.h
@@ -28,17 +28,17 @@ public:
   };
 
   virtual int32_t Next( const PRUnichar* aText, uint32_t aLen, 
                         uint32_t aPos) = 0;
 
   virtual int32_t Prev( const PRUnichar* aText, uint32_t aLen, 
                         uint32_t aPos) = 0;
 
-  // Call this on a word with whitespace at either end. We will apply JISx4501
+  // Call this on a word with whitespace at either end. We will apply JISx4051
   // rules to find breaks inside the word. aBreakBefore is set to the break-
   // before status of each character; aBreakBefore[0] will always be false
   // because we never return a break before the first character.
   // aLength is the length of the aText array and also the length of the aBreakBefore
   // output array.
   virtual void GetJISx4051Breaks(const PRUnichar* aText, uint32_t aLength,
                                  uint8_t aWordBreak,
                                  uint8_t* aBreakBefore) = 0;
--- a/intl/lwbrk/src/Makefile.in
+++ b/intl/lwbrk/src/Makefile.in
@@ -12,17 +12,17 @@ include $(DEPTH)/config/autoconf.mk
 
 MODULE		= lwbrk
 LIBRARY_NAME	= lwbrk_s
 FORCE_STATIC_LIB = 1
 LIBXUL_LIBRARY  = 1
 
 
 CPPSRCS		= \
-		nsJISx4501LineBreaker.cpp \
+		nsJISx4051LineBreaker.cpp \
 		nsSampleWordBreaker.cpp \
 		nsSemanticUnitScanner.cpp \
 		$(NULL)
 
 ifeq  ($(MOZ_WIDGET_TOOLKIT),gtk2)
 CPPSRCS		+= \
 		nsPangoBreaker.cpp \
 		$(NULL)
rename from intl/lwbrk/src/jisx4501class.h
rename to intl/lwbrk/src/jisx4051class.h
--- a/intl/lwbrk/src/jisx4501class.h
+++ b/intl/lwbrk/src/jisx4051class.h
@@ -1,15 +1,15 @@
 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 /* 
     DO NOT EDIT THIS DOCUMENT !!! THIS DOCUMENT IS GENERATED BY
-    mozilla/intl/lwbrk/tools/anzx4501.pl
+    mozilla/intl/lwbrk/tools/anzx4051.pl
  */
 static const uint32_t gLBClass00[32] = {
 0x55555555, // U+0000 - U+0007
 0x55555555, // U+0008 - U+000F
 0x55555555, // U+0010 - U+0017
 0x55555555, // U+0018 - U+001F
 0x7AABAAA5, // U+0020 - U+0027
 0x7A7AAAA9, // U+0028 - U+002F
rename from intl/lwbrk/src/nsJISx4501LineBreaker.cpp
rename to intl/lwbrk/src/nsJISx4051LineBreaker.cpp
--- a/intl/lwbrk/src/nsJISx4501LineBreaker.cpp
+++ b/intl/lwbrk/src/nsJISx4051LineBreaker.cpp
@@ -1,18 +1,18 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 
-#include "nsJISx4501LineBreaker.h"
+#include "nsJISx4051LineBreaker.h"
 
-#include "jisx4501class.h"
+#include "jisx4051class.h"
 #include "nsComplexBreaker.h"
 #include "nsTArray.h"
 #include "nsUnicharUtils.h"
 
 /* 
 
    Simplification of Pair Table in JIS X 4051
 
rename from intl/lwbrk/src/nsJISx4501LineBreaker.h
rename to intl/lwbrk/src/nsJISx4051LineBreaker.h
--- a/intl/lwbrk/src/nsJISx4501LineBreaker.h
+++ b/intl/lwbrk/src/nsJISx4051LineBreaker.h
@@ -1,14 +1,14 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef nsJISx4501LineBreaker_h__
-#define nsJISx4501LineBreaker_h__
+#ifndef nsJISx4051LineBreaker_h__
+#define nsJISx4051LineBreaker_h__
 
 
 #include "nsILineBreaker.h"
 
 class nsJISx4051LineBreaker : public nsILineBreaker
 {
   NS_DECL_ISUPPORTS
 
@@ -27,9 +27,9 @@ public:
                                  uint8_t aBreakMode,
                                  uint8_t* aBreakBefore);
 
 private:
   int32_t WordMove(const PRUnichar* aText, uint32_t aLen, uint32_t aPos,
                    int8_t aDirection);
 };
 
-#endif  /* nsJISx4501LineBreaker_h__ */
+#endif  /* nsJISx4051LineBreaker_h__ */
deleted file mode 100644
--- a/intl/lwbrk/src/nsLWIMP.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef nsLWIMP_h__
-#define nsLWIMP_h__
-
-#include "nsJISx4501LineBreaker.h"
-#include "nsSampleWordBreaker.h"
-
-#define LINEBREAKER nsJISx4501LineBreaker
-#define WORDBREAKER nsSampleWordBreaker
-
-#endif  /* nsLWIMP_h__ */
rename from intl/lwbrk/tools/anzx4501.html
rename to intl/lwbrk/tools/anzx4051.html
rename from intl/lwbrk/tools/anzx4501.pl
rename to intl/lwbrk/tools/anzx4051.pl
--- a/intl/lwbrk/tools/anzx4501.pl
+++ b/intl/lwbrk/tools/anzx4051.pl
@@ -21,42 +21,42 @@
 open ( UNICODATA , "< ../../unicharutil/tools/UnicodeData-Latest.txt") 
    || die "cannot find UnicodeData-Latest.txt";
 
 ######################################################################
 #
 # Open the JIS X 4051 Class file
 #
 ######################################################################
-open ( CLASS , "< jisx4501class.txt") 
-   || die "cannot find jisx4501class.txt";
+open ( CLASS , "< jisx4051class.txt") 
+   || die "cannot find jisx4051class.txt";
 
 ######################################################################
 #
 # Open the JIS X 4051 Class simplified mapping
 #
 ######################################################################
-open ( SIMP , "< jisx4501simp.txt") 
-   || die "cannot find jisx4501simp.txt";
+open ( SIMP , "< jisx4051simp.txt") 
+   || die "cannot find jisx4051simp.txt";
 
 ######################################################################
 #
 # Open the output file
 #
 ######################################################################
-open ( OUT , "> anzx4501.html") 
-  || die "cannot open output anzx4501.html file";
+open ( OUT , "> anzx4051.html") 
+  || die "cannot open output anzx4051.html file";
 
 ######################################################################
 #
 # Open the output file
 #
 ######################################################################
-open ( HEADER , "> ../src/jisx4501class.h") 
-  || die "cannot open output ../src/jisx4501class.h file";
+open ( HEADER , "> ../src/jisx4051class.h") 
+  || die "cannot open output ../src/jisx4051class.h file";
 
 ######################################################################
 #
 # Generate license and header
 #
 ######################################################################
 $hthmlheader = <<END_OF_HTML;
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
@@ -83,17 +83,17 @@ print OUT $hthmlheader;
 ######################################################################
 $npl = <<END_OF_NPL;
 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 /* 
     DO NOT EDIT THIS DOCUMENT !!! THIS DOCUMENT IS GENERATED BY
-    mozilla/intl/lwbrk/tools/anzx4501.pl
+    mozilla/intl/lwbrk/tools/anzx4051.pl
  */
 END_OF_NPL
 print HEADER $npl;
 
 %occ = ();
 %gcat = ();
 %dcat = ();
 %simp = ();
rename from intl/lwbrk/tools/jisx4501class.txt
rename to intl/lwbrk/tools/jisx4051class.txt
rename from intl/lwbrk/tools/jisx4501simp.txt
rename to intl/lwbrk/tools/jisx4051simp.txt