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


01:        /*
02:         **********************************************************************
03:         *   Copyright (c) 2002, International Business Machines Corporation
04:         *   and others.  All Rights Reserved.
05:         **********************************************************************
06:         *   Date        Name        Description
07:         *   01/14/2002  aliu        Creation.
08:         **********************************************************************
09:         */
10:
11:        package com.ibm.icu.text;
12:
13:        /**
14:         * <code>UnicodeReplacer</code> defines a protocol for objects that
15:         * replace a range of characters in a Replaceable string with output
16:         * text.  The replacement is done via the Replaceable API so as to
17:         * preserve out-of-band data.
18:         * @author Alan Liu
19:         */
20:        interface UnicodeReplacer {
21:
22:            /**
23:             * Replace characters in 'text' from 'start' to 'limit' with the
24:             * output text of this object.  Update the 'cursor' parameter to
25:             * give the cursor position and return the length of the
26:             * replacement text.
27:             *
28:             * @param text the text to be matched
29:             * @param start inclusive start index of text to be replaced
30:             * @param limit exclusive end index of text to be replaced;
31:             * must be greater than or equal to start
32:             * @param cursor output parameter for the cursor position.
33:             * Not all replacer objects will update this, but in a complete
34:             * tree of replacer objects, representing the entire output side
35:             * of a transliteration rule, at least one must update it.
36:             * @return the number of 16-bit code units in the text replacing
37:             * the characters at offsets start..(limit-1) in text
38:             */
39:            public abstract int replace(Replaceable text, int start, int limit,
40:                    int[] cursor);
41:
42:            /**
43:             * Returns a string representation of this replacer.  If the
44:             * result of calling this function is passed to the appropriate
45:             * parser, typically TransliteratorParser, it will produce another
46:             * replacer that is equal to this one.
47:             * @param escapeUnprintable if TRUE then convert unprintable
48:             * character to their hex escape representations, \\uxxxx or
49:     * \\Uxxxxxxxx.  Unprintable characters are defined by
50:     * Utility.isUnprintable().
51:     */
52:            public abstract String toReplacerPattern(boolean escapeUnprintable);
53:
54:            /**
55:             * Union the set of all characters that may output by this object
56:             * into the given set.
57:             * @param toUnionTo the set into which to union the output characters
58:             */
59:            public abstract void addReplacementSetTo(UnicodeSet toUnionTo);
60:        }
61:
62:        //eof
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.