Source Code Cross Referenced for UCharacterCategory.java in  » Internationalization-Localization » icu4j » com » ibm » icu » lang » 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.lang 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         *******************************************************************************
003:         * Copyright (C) 1996-2004, International Business Machines Corporation and    *
004:         * others. All Rights Reserved.                                                *
005:         *******************************************************************************
006:         */package com.ibm.icu.lang;
007:
008:        import com.ibm.icu.lang.UCharacterEnums.ECharacterCategory;
009:
010:        /**
011:         * Enumerated Unicode category types from the UnicodeData.txt file.
012:         * Used as return results from <a href=UCharacter.html>UCharacter</a>
013:         * Equivalent to icu's UCharCategory.
014:         * Refer to <a href="http://www.unicode.org/Public/UNIDATA/UCD.html">
015:         * Unicode Consortium</a> for more information about UnicodeData.txt.
016:         * <p>
017:         * <em>NOTE:</em> the UCharacterCategory values are <em>not</em> compatible with
018:         * those returned by java.lang.Character.getType.  UCharacterCategory values
019:         * match the ones used in ICU4C, while java.lang.Character type
020:         * values, though similar, skip the value 17.</p>
021:         * <p>
022:         * This class is not subclassable
023:         * </p>
024:         * @author Syn Wee Quek
025:         * @stable ICU 2.1
026:         */
027:
028:        public final class UCharacterCategory implements  ECharacterCategory {
029:            /**
030:             * Gets the name of the argument category
031:             * @param category to retrieve name
032:             * @return category name
033:             * @stable ICU 2.1
034:             */
035:            public static String toString(int category) {
036:                switch (category) {
037:                case UPPERCASE_LETTER:
038:                    return "Letter, Uppercase";
039:                case LOWERCASE_LETTER:
040:                    return "Letter, Lowercase";
041:                case TITLECASE_LETTER:
042:                    return "Letter, Titlecase";
043:                case MODIFIER_LETTER:
044:                    return "Letter, Modifier";
045:                case OTHER_LETTER:
046:                    return "Letter, Other";
047:                case NON_SPACING_MARK:
048:                    return "Mark, Non-Spacing";
049:                case ENCLOSING_MARK:
050:                    return "Mark, Enclosing";
051:                case COMBINING_SPACING_MARK:
052:                    return "Mark, Spacing Combining";
053:                case DECIMAL_DIGIT_NUMBER:
054:                    return "Number, Decimal Digit";
055:                case LETTER_NUMBER:
056:                    return "Number, Letter";
057:                case OTHER_NUMBER:
058:                    return "Number, Other";
059:                case SPACE_SEPARATOR:
060:                    return "Separator, Space";
061:                case LINE_SEPARATOR:
062:                    return "Separator, Line";
063:                case PARAGRAPH_SEPARATOR:
064:                    return "Separator, Paragraph";
065:                case CONTROL:
066:                    return "Other, Control";
067:                case FORMAT:
068:                    return "Other, Format";
069:                case PRIVATE_USE:
070:                    return "Other, Private Use";
071:                case SURROGATE:
072:                    return "Other, Surrogate";
073:                case DASH_PUNCTUATION:
074:                    return "Punctuation, Dash";
075:                case START_PUNCTUATION:
076:                    return "Punctuation, Open";
077:                case END_PUNCTUATION:
078:                    return "Punctuation, Close";
079:                case CONNECTOR_PUNCTUATION:
080:                    return "Punctuation, Connector";
081:                case OTHER_PUNCTUATION:
082:                    return "Punctuation, Other";
083:                case MATH_SYMBOL:
084:                    return "Symbol, Math";
085:                case CURRENCY_SYMBOL:
086:                    return "Symbol, Currency";
087:                case MODIFIER_SYMBOL:
088:                    return "Symbol, Modifier";
089:                case OTHER_SYMBOL:
090:                    return "Symbol, Other";
091:                case INITIAL_PUNCTUATION:
092:                    return "Punctuation, Initial quote";
093:                case FINAL_PUNCTUATION:
094:                    return "Punctuation, Final quote";
095:                }
096:                return "Unassigned";
097:            }
098:
099:            // private constructor -----------------------------------------------
100:            ///CLOVER:OFF 
101:            /**
102:             * Private constructor to prevent initialisation
103:             */
104:            private UCharacterCategory() {
105:            }
106:            ///CLOVER:ON
107:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.