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


java.lang.Object
   com.ibm.icu.dev.test.AbstractTestLog
      com.ibm.icu.dev.test.TestFmwk
         com.ibm.icu.dev.test.translit.UnicodeSetTest

UnicodeSetTest
public class UnicodeSetTest extends TestFmwk (Code)

Inner Class :public class TokenSymbolTable implements SymbolTable

Field Summary
final static  IntegerI_ANYI_CONTAINSI_DISJOINTI_NO_BI_ISCONTAINEDI_EQUALSI_NO_AI_NONE
    
final static  StringNOT
    
static  String[]OTHER_TOPATTERN_TESTS
    
final public static  String[]RELATION_NAME
    
 String[]prettyData
    


Method Summary
final static  StringCharsToUnicodeString(String s)
    
 voidCheckSpeed(SortedSet iset, SortedSet jset, String message, int iterations)
    
 voidCheckSpeed2(SortedSet iset, SortedSet jset, String message, int iterations)
    
 voidCheckSpeed3(SortedSet iset, SortedSet jset, String message, int iterations)
    
public  voidSetSpeed2(int size)
    
public  voidTestAPI()
    
public  voidTestAddRemove()
    
public  voidTestCategories()
    
public  voidTestClone()
    
public  voidTestCloseOver()
     Test closure API.
public  voidTestContainsString()
    
public  voidTestEscapePattern()
    
public  voidTestExhaustive()
    
public  voidTestFrozen()
     Test that frozen classes disallow changes.
public  voidTestIndexOf()
     Test the indexOf() and charAt() methods.
public  voidTestMinimalRep()
     Make sure minimal representation is maintained.
public  voidTestPatterns()
    
public  voidTestPosixClasses()
     Test that Posix style character classes [:digit:], etc.
public  voidTestPrettyPrinting()
    
public  voidTestPropertySet()
     Test the [:Latin:] syntax.
public  voidTestScriptNames()
     Make sure each script name and abbreviated name can be used to construct a UnicodeSet.
public  voidTestScriptSet()
     Test the [:Latin:] syntax.
public  voidTestSetRelation()
    
public  voidTestSetSpeed()
    
public  voidTestStrings()
    
public  voidTestSurrogate()
    
public  voidTestSymbolTable()
    
public  voidTestToPattern()
     Test toPattern().
public  voidTestUnicodeSetStrings()
    
 void_testAdd(int a, int b)
    
 void_testComplement(int a)
    
 void_testRemove(int a, int b)
    
 void_testRetain(int a, int b)
    
 void_testXor(int a, int b)
    
 UnicodeSetbitsToSet(int a)
     Convert a bitmask to a UnicodeSet.
 voidcheckCanonicalRep(UnicodeSet set, String msg)
     Check that ranges are monotonically increasing and non- overlapping.
 booleancheckEqual(UnicodeSet s, UnicodeSet t, String message)
    
public  voidcheckModification(UnicodeSet original, boolean isFrozen)
    
 booleancheckPat(String source, UnicodeSet testSet)
    
 booleancheckPat(String source, UnicodeSet testSet, String pat)
    
 voidcheckRoundTrip(UnicodeSet s)
     Basic consistency check for a few items.
 voidcheckSetRelation(SortedSet a, SortedSet b, String message)
    
 UnicodeSetcopyWithIterator(UnicodeSet s, boolean withRange)
    
 booleandumbHasRelation(Collection A, int filter, Collection B)
    
 voidexpectContainment(String pat, String charsIn, String charsOut)
     Expect the given set to contain the characters in charsIn and to not contain those in charsOut.
 voidexpectContainment(UnicodeSet set, String charsIn, String charsOut)
     Expect the given set to contain the characters in charsIn and to not contain those in charsOut.
 voidexpectEqual(String name, String pat1, String pat2)
    
 voidexpectPairs(UnicodeSet set, String expectedPairs)
    
 voidexpectPattern(UnicodeSet set, String pattern, String expectedPairs)
    
 voidexpectRelation(Object relationObj, Object set1Obj, Object set2Obj, String message)
     Test function.
 voidexpectToPattern(UnicodeSet set, String expPat, String[] expStrings)
    
static  StringgetPairs(UnicodeSet set)
     Return the representation of an inversion list based UnicodeSet as a pairs list.
public static  voidmain(String[] args)
    
 voidpick(int bits, Object[] examples, SortedSet output)
    
static  intsetToBits(UnicodeSet x)
     Convert a UnicodeSet to a bitmask.
public  booleantoPatternAux(int start, int end)
    
public static  intunescapeAt(String s, int[] offset16)
    
public static  StringunescapeLeniently(String s)
     Convert all escapes in a given string using unescapeAt().

Field Detail
I_ANYI_CONTAINSI_DISJOINTI_NO_BI_ISCONTAINEDI_EQUALSI_NO_AI_NONE
final static Integer I_ANYI_CONTAINSI_DISJOINTI_NO_BI_ISCONTAINEDI_EQUALSI_NO_AI_NONE(Code)



NOT
final static String NOT(Code)



OTHER_TOPATTERN_TESTS
static String[] OTHER_TOPATTERN_TESTS(Code)



RELATION_NAME
final public static String[] RELATION_NAME(Code)



prettyData
String[] prettyData(Code)





Method Detail
CharsToUnicodeString
final static String CharsToUnicodeString(String s)(Code)



CheckSpeed
void CheckSpeed(SortedSet iset, SortedSet jset, String message, int iterations)(Code)



CheckSpeed2
void CheckSpeed2(SortedSet iset, SortedSet jset, String message, int iterations)(Code)



CheckSpeed3
void CheckSpeed3(SortedSet iset, SortedSet jset, String message, int iterations)(Code)



SetSpeed2
public void SetSpeed2(int size)(Code)



TestAPI
public void TestAPI()(Code)



TestAddRemove
public void TestAddRemove()(Code)



TestCategories
public void TestCategories()(Code)



TestClone
public void TestClone()(Code)
Test cloning of UnicodeSet



TestCloseOver
public void TestCloseOver()(Code)
Test closure API.



TestContainsString
public void TestContainsString()(Code)



TestEscapePattern
public void TestEscapePattern()(Code)



TestExhaustive
public void TestExhaustive()(Code)



TestFrozen
public void TestFrozen()(Code)
Test that frozen classes disallow changes. For 4217



TestIndexOf
public void TestIndexOf()(Code)
Test the indexOf() and charAt() methods.



TestMinimalRep
public void TestMinimalRep()(Code)
Make sure minimal representation is maintained.



TestPatterns
public void TestPatterns()(Code)



TestPosixClasses
public void TestPosixClasses()(Code)
Test that Posix style character classes [:digit:], etc. have the Unicode definitions from TR 18.



TestPrettyPrinting
public void TestPrettyPrinting()(Code)



TestPropertySet
public void TestPropertySet()(Code)
Test the [:Latin:] syntax.



TestScriptNames
public void TestScriptNames()(Code)
Make sure each script name and abbreviated name can be used to construct a UnicodeSet.



TestScriptSet
public void TestScriptSet()(Code)
Test the [:Latin:] syntax.



TestSetRelation
public void TestSetRelation()(Code)



TestSetSpeed
public void TestSetSpeed()(Code)



TestStrings
public void TestStrings()(Code)



TestSurrogate
public void TestSurrogate()(Code)



TestSymbolTable
public void TestSymbolTable()(Code)



TestToPattern
public void TestToPattern() throws Exception(Code)
Test toPattern().



TestUnicodeSetStrings
public void TestUnicodeSetStrings()(Code)



_testAdd
void _testAdd(int a, int b)(Code)



_testComplement
void _testComplement(int a)(Code)



_testRemove
void _testRemove(int a, int b)(Code)



_testRetain
void _testRetain(int a, int b)(Code)



_testXor
void _testXor(int a, int b)(Code)



bitsToSet
UnicodeSet bitsToSet(int a)(Code)
Convert a bitmask to a UnicodeSet.



checkCanonicalRep
void checkCanonicalRep(UnicodeSet set, String msg)(Code)
Check that ranges are monotonically increasing and non- overlapping.



checkEqual
boolean checkEqual(UnicodeSet s, UnicodeSet t, String message)(Code)



checkModification
public void checkModification(UnicodeSet original, boolean isFrozen)(Code)



checkPat
boolean checkPat(String source, UnicodeSet testSet)(Code)



checkPat
boolean checkPat(String source, UnicodeSet testSet, String pat)(Code)



checkRoundTrip
void checkRoundTrip(UnicodeSet s)(Code)
Basic consistency check for a few items. That the iterator works, and that we can create a pattern and get the same thing back



checkSetRelation
void checkSetRelation(SortedSet a, SortedSet b, String message)(Code)



copyWithIterator
UnicodeSet copyWithIterator(UnicodeSet s, boolean withRange)(Code)



dumbHasRelation
boolean dumbHasRelation(Collection A, int filter, Collection B)(Code)



expectContainment
void expectContainment(String pat, String charsIn, String charsOut)(Code)
Expect the given set to contain the characters in charsIn and to not contain those in charsOut.



expectContainment
void expectContainment(UnicodeSet set, String charsIn, String charsOut)(Code)
Expect the given set to contain the characters in charsIn and to not contain those in charsOut.



expectEqual
void expectEqual(String name, String pat1, String pat2)(Code)



expectPairs
void expectPairs(UnicodeSet set, String expectedPairs)(Code)



expectPattern
void expectPattern(UnicodeSet set, String pattern, String expectedPairs)(Code)



expectRelation
void expectRelation(Object relationObj, Object set1Obj, Object set2Obj, String message)(Code)
Test function. Make sure that the sets have the right relation



expectToPattern
void expectToPattern(UnicodeSet set, String expPat, String[] expStrings)(Code)



getPairs
static String getPairs(UnicodeSet set)(Code)
Return the representation of an inversion list based UnicodeSet as a pairs list. Ranges are listed in ascending Unicode order. For example, the set [a-zA-M3] is represented as "33AMaz".



main
public static void main(String[] args) throws Exception(Code)



pick
void pick(int bits, Object[] examples, SortedSet output)(Code)



setToBits
static int setToBits(UnicodeSet x)(Code)
Convert a UnicodeSet to a bitmask. Only the characters U+0000 to U+0020 are represented in the bitmask.



toPatternAux
public boolean toPatternAux(int start, int end)(Code)



unescapeAt
public static int unescapeAt(String s, int[] offset16)(Code)



unescapeLeniently
public static String unescapeLeniently(String s)(Code)
Convert all escapes in a given string using unescapeAt(). Leave invalid escape sequences unchanged.



Fields inherited from com.ibm.icu.dev.test.TestFmwk
protected TestParams params(Code)(Java Doc)

Methods inherited from com.ibm.icu.dev.test.TestFmwk
protected boolean assertEquals(String message, boolean expected, boolean actual)(Code)(Java Doc)
protected boolean assertEquals(String message, long expected, long actual)(Code)(Java Doc)
protected boolean assertEquals(String message, float expected, float actual, double error)(Code)(Java Doc)
protected boolean assertEquals(String message, double expected, double actual, double error)(Code)(Java Doc)
protected boolean assertEquals(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertFalse(String message, boolean condition)(Code)(Java Doc)
protected boolean assertNotEquals(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertNotNull(String message, Object actual)(Code)(Java Doc)
protected boolean assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertNull(String message, Object actual)(Code)(Java Doc)
protected boolean assertSame(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertTrue(String message, boolean condition)(Code)(Java Doc)
protected int checkArray(String msg, String array, String expected)(Code)(Java Doc)
protected int checkArray(String msg, Locale array, String expected)(Code)(Java Doc)
protected int checkArray(String msg, ULocale array, String expected)(Code)(Java Doc)
protected Random createRandom()(Code)(Java Doc)
protected void fail(String message)(Code)(Java Doc)
protected static synchronized java.util.Date getDate(int year, int month, int dom)(Code)(Java Doc)
protected String getDescription()(Code)(Java Doc)
protected int getErrorCount()(Code)(Java Doc)
public PrintWriter getErrorLogPrintWriter()(Code)(Java Doc)
public int getInclusion()(Code)(Java Doc)
public PrintWriter getLogPrintWriter()(Code)(Java Doc)
protected String getMethodDescription(String name)(Code)(Java Doc)
protected TestFmwk getSubtest(String prefix) throws TestFmwkException(Code)(Java Doc)
protected Target getTargets(String targetName)(Code)(Java Doc)
public String getTranslitTestFilter()(Code)(Java Doc)
protected void handleException(Throwable e)(Code)(Java Doc)
public static String hex(char[] s)(Code)(Java Doc)
public static String hex(byte[] s)(Code)(Java Doc)
public static String hex(char ch)(Code)(Java Doc)
public static String hex(int ch)(Code)(Java Doc)
public static String hex(String s)(Code)(Java Doc)
public static String hex(StringBuffer s)(Code)(Java Doc)
protected void init() throws Exception(Code)(Java Doc)
public boolean isDateAtLeast(int year, int month, int day)(Code)(Java Doc)
public boolean isMemTracking()(Code)(Java Doc)
public boolean isModularBuild()(Code)(Java Doc)
public boolean isQuick()(Code)(Java Doc)
public boolean isTiming()(Code)(Java Doc)
public boolean isVerbose()(Code)(Java Doc)
public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc)
public boolean noData()(Code)(Java Doc)
public static String prettify(String s)(Code)(Java Doc)
public static String prettify(StringBuffer s)(Code)(Java Doc)
public Target resolveTarget(TestParams params)(Code)(Java Doc)
public Target resolveTarget(TestParams params, String targetPath)(Code)(Java Doc)
public void run(String[] args)(Code)(Java Doc)
public int run(String[] args, PrintWriter log)(Code)(Java Doc)
public int runTests(TestParams params, String[] tests)(Code)(Java Doc)
protected TimeZone safeGetTimeZone(String id)(Code)(Java Doc)
public void usage()(Code)(Java Doc)
public static void usage(PrintWriter pw, String className)(Code)(Java Doc)
protected boolean validate()(Code)(Java Doc)
protected boolean validateMethod(String name)(Code)(Java Doc)

Fields inherited from com.ibm.icu.dev.test.AbstractTestLog
public static boolean dontSkipForVersion(Code)(Java Doc)

Methods inherited from com.ibm.icu.dev.test.AbstractTestLog
final public void err(String message)(Code)(Java Doc)
final public void errln(String message)(Code)(Java Doc)
public boolean isICUVersionAtLeast(int major, int minor)(Code)(Java Doc)
final public void log(String message)(Code)(Java Doc)
final public void logln(String message)(Code)(Java Doc)
abstract public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc)
public boolean skipIfBeforeICU(int major, int minor)(Code)(Java Doc)
final public void warn(String message)(Code)(Java Doc)
final public void warnln(String message)(Code)(Java Doc)

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.