Java Doc for UnicodeSetCloseOver.java in  » Internationalization-Localization » icu4j » com » ibm » icu » dev » tool » translit » 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.dev.tool.translit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.dev.tool.translit.UnicodeSetCloseOver

UnicodeSetCloseOver
class UnicodeSetCloseOver (Code)
This class produces the data tables used by the closeOver() method of UnicodeSet. Whenever the Unicode database changes, this tool must be re-run (AFTER the data file(s) underlying ICU4J are udpated). The output of this tool should then be pasted into the appropriate files: ICU4J: com.ibm.icu.text.UnicodeSet.java ICU4C: /icu/source/common/uniset.cpp


Field Summary
final static  StringC_SET_OUT
    
final static  StringC_UCHAR_OUT
    
final static  booleanDEFAULT_CASE_MAP
    
final static  StringJAVA_CHARPROP_OUT
    
final static  StringJAVA_OUT
    
final static  StringWARNING
    


Method Summary
static  voidanalyzeCaseData(Map equivClasses, StringBuffer pairs, Vector nonpairs, Vector lengths)
     Analyze the case fold equivalency classes.
static  MapcreateCaseFoldEquivalencyClasses()
     Create a map of String => Set.
static  voidemitRangesString(PrintStream out, UnicodeSet set, String id)
     Given a UnicodeSet, emit it as a Java string.
static  voidemitUCharRangesArray(PrintStream out, UnicodeSet set, String id)
     Given a UnicodeSet, emit it as an array of UChar pairs.
static  voidgenerateCaseData()
    
static  UnicodeSetgetCaseSensitive()
     Create the set of case-sensitive characters.
public static  voidmain(String[] args)
    

Field Detail
C_SET_OUT
final static String C_SET_OUT(Code)



C_UCHAR_OUT
final static String C_UCHAR_OUT(Code)



DEFAULT_CASE_MAP
final static boolean DEFAULT_CASE_MAP(Code)



JAVA_CHARPROP_OUT
final static String JAVA_CHARPROP_OUT(Code)



JAVA_OUT
final static String JAVA_OUT(Code)



WARNING
final static String WARNING(Code)





Method Detail
analyzeCaseData
static void analyzeCaseData(Map equivClasses, StringBuffer pairs, Vector nonpairs, Vector lengths)(Code)
Analyze the case fold equivalency classes. Break them into two groups: 'pairs', and 'nonpairs'. Create a tally of the length configurations of the nonpairs. Length configurations of equivalency classes, as of Unicode 3.2. Most of the classes (83%) have two single codepoints. Here "112:28" means there are 28 equivalency classes with 2 single codepoints and one string of length 2. 11:656 111:16 1111:3 112:28 113:2 12:31 13:12 22:38 Note: This method does not count the frequencies of the different length configurations (as shown above after ':'); it merely records which configurations occur.
Parameters:
  pairs - Accumulate equivalency classes that consist ofexactly two codepoints here. This is 83+% of the classes.E.g., {"a", "A"}.
Parameters:
  nonpairs - Accumulate other equivalency classes here, aslists of strings. E,g, {"st", "\uFB05", "\uFB06"}.
Parameters:
  lengths - Accumulate a list of unique length structures,not including pairs. Each length structure is represented by astring of digits. The digit string "12" means the equivalencyclass contains a single code point and a string of length 2.Typical contents of 'lengths': { "111", "1111", "112","113", "12", "13", "22" }. Note the absence of "11".



createCaseFoldEquivalencyClasses
static Map createCaseFoldEquivalencyClasses()(Code)
Create a map of String => Set. The String in this case is a folded string for which UCharacter.foldCase(folded. DEFAULT_CASE_MAP).equals(folded). The Set contains all single-character strings x for which UCharacter.foldCase(x, DEFAULT_CASE_MAP).equals(folded), as well as folded itself.



emitRangesString
static void emitRangesString(PrintStream out, UnicodeSet set, String id)(Code)
Given a UnicodeSet, emit it as a Java string. The most economical format is not the pattern, but instead a pairs list, with each range pair represented as two adjacent characters.



emitUCharRangesArray
static void emitUCharRangesArray(PrintStream out, UnicodeSet set, String id)(Code)
Given a UnicodeSet, emit it as an array of UChar pairs. Each pair will be the start/end of a range. Code points >= U+10000 will be represented as surrogate pairs.



generateCaseData
static void generateCaseData() throws IOException(Code)



getCaseSensitive
static UnicodeSet getCaseSensitive()(Code)
Create the set of case-sensitive characters. These are characters that participate in any case mapping operation as a source or as a member of a target string.



main
public static void main(String[] args) throws IOException(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.