Java Doc for ImplicitCEGenerator.java in  » Internationalization-Localization » icu4j » com » ibm » icu » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Internationalization Localization » icu4j » com.ibm.icu.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.impl.ImplicitCEGenerator

ImplicitCEGenerator
public class ImplicitCEGenerator (Code)
For generation of Implicit CEs
author:
   Mark Davis
author:
   Cleaned up so that changes can be made more easily.
author:
   Old values:
author:
   # First Implicit: E26A792D
author:
   # Last Implicit: E3DC70C0
author:
   # First CJK: E0030300
author:
   # Last CJK: E0A9DD00
author:
   # First CJK_A: E0A9DF00
author:
   # Last CJK_A: E0DE3100


Field Summary
final public static  intCJK_BASECJK_LIMITCJK_COMPAT_USED_BASECJK_COMPAT_USED_LIMITCJK_A_BASECJK_A_LIMITCJK_B_BASECJK_B_LIMIT
    
final static  booleanDEBUG
    
final static  intMAX_INPUT
    
static  intNON_CJK_OFFSET
     Function used to: a) collapse the 2 different Han ranges from UCA into one (in the right order), and b) bump any non-CJK characters by 10FFFF.
final static  longbottomByte
    
 intfinal3Count
    
 intfinal3Multiplier
    
 intfinal4Count
    
 intfinal4Multiplier
    
final static  longfourBytes
    
 intmax3Trail
    
 intmax4Primary
    
 intmax4Trail
    
 intmaxTrail
    
 intmedialCount
    
 intmin3Primary
    
 intmin4Boundary
    
 intmin4Primary
    
 intminTrail
    
final static  longtopByte
    

Constructor Summary
public  ImplicitCEGenerator(int minPrimary, int maxPrimary)
    
public  ImplicitCEGenerator(int minPrimary, int maxPrimary, int minTrail, int maxTrail, int gap3, int primaries3count)
     Set up to generate implicits.

Method Summary
public static  intdivideAndRoundUp(int a, int b)
    
public  intgetCodePointFromRaw(int i)
    
public  intgetGap3()
    
public  intgetGap4()
    
public  intgetImplicitFromCodePoint(int cp)
     Gets an Implicit from a code point.
public  intgetImplicitFromRaw(int cp)
     Generate the implicit CE, from raw integer.
public  intgetMaxTrail()
    
public  intgetMinTrail()
    
public  intgetRawFromCodePoint(int i)
    
public  intgetRawFromImplicit(int implicit)
    
static  intswapCJK(int i)
    

Field Detail
CJK_BASECJK_LIMITCJK_COMPAT_USED_BASECJK_COMPAT_USED_LIMITCJK_A_BASECJK_A_LIMITCJK_B_BASECJK_B_LIMIT
final public static int CJK_BASECJK_LIMITCJK_COMPAT_USED_BASECJK_COMPAT_USED_LIMITCJK_A_BASECJK_A_LIMITCJK_B_BASECJK_B_LIMIT(Code)



DEBUG
final static boolean DEBUG(Code)
constants



MAX_INPUT
final static int MAX_INPUT(Code)



NON_CJK_OFFSET
static int NON_CJK_OFFSET(Code)
Function used to: a) collapse the 2 different Han ranges from UCA into one (in the right order), and b) bump any non-CJK characters by 10FFFF. The relevant blocks are: A: 4E00..9FFF; CJK Unified Ideographs F900..FAFF; CJK Compatibility Ideographs B: 3400..4DBF; CJK Unified Ideographs Extension A 20000..XX; CJK Unified Ideographs Extension B (and others later on) As long as no new B characters are allocated between 4E00 and FAFF, and no new A characters are outside of this range, (very high probability) this simple code will work. The reordered blocks are: Block1 is CJK Block2 is CJK_COMPAT_USED Block3 is CJK_A (all contiguous) Any other CJK gets its normal code point Any non-CJK gets +10FFFF When we reorder Block1, we make sure that it is at the very start, so that it will use a 3-byte form. Warning: the we only pick up the compatibility characters that are NOT decomposed, so that block is smaller!



bottomByte
final static long bottomByte(Code)



final3Count
int final3Count(Code)



final3Multiplier
int final3Multiplier(Code)
Precomputed by constructor



final4Count
int final4Count(Code)



final4Multiplier
int final4Multiplier(Code)



fourBytes
final static long fourBytes(Code)



max3Trail
int max3Trail(Code)



max4Primary
int max4Primary(Code)



max4Trail
int max4Trail(Code)



maxTrail
int maxTrail(Code)



medialCount
int medialCount(Code)



min3Primary
int min3Primary(Code)



min4Boundary
int min4Boundary(Code)



min4Primary
int min4Primary(Code)



minTrail
int minTrail(Code)



topByte
final static long topByte(Code)




Constructor Detail
ImplicitCEGenerator
public ImplicitCEGenerator(int minPrimary, int maxPrimary)(Code)
Supply parameters for generating implicit CEs



ImplicitCEGenerator
public ImplicitCEGenerator(int minPrimary, int maxPrimary, int minTrail, int maxTrail, int gap3, int primaries3count)(Code)
Set up to generate implicits.
Parameters:
  minPrimary -
Parameters:
  maxPrimary -
Parameters:
  minTrail - final byte
Parameters:
  maxTrail - final byte
Parameters:
  gap3 - the gap we leave for tailoring for 3-byte forms
Parameters:
  primaries3count - number of 3-byte primarys we can use (normally 1)




Method Detail
divideAndRoundUp
public static int divideAndRoundUp(int a, int b)(Code)



getCodePointFromRaw
public int getCodePointFromRaw(int i)(Code)



getGap3
public int getGap3()(Code)



getGap4
public int getGap4()(Code)



getImplicitFromCodePoint
public int getImplicitFromCodePoint(int cp)(Code)
Gets an Implicit from a code point. Internally, swaps (which produces a raw value 0..220000, then converts raw to implicit.
Parameters:
  cp - Primary implicit weight



getImplicitFromRaw
public int getImplicitFromRaw(int cp)(Code)
Generate the implicit CE, from raw integer. Left shifted to put the first byte at the top of an int.
Parameters:
  cp - code point Primary implicit weight



getMaxTrail
public int getMaxTrail()(Code)
Maximal trail value



getMinTrail
public int getMinTrail()(Code)
Minimal trail value



getRawFromCodePoint
public int getRawFromCodePoint(int i)(Code)



getRawFromImplicit
public int getRawFromImplicit(int implicit)(Code)
Converts implicit CE into raw integer
Parameters:
  implicit - -1 if illegal format



swapCJK
static int swapCJK(int i)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.