diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-24 20:52:20 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-24 20:52:20 +0000 |
commit | 1560478d80eb8a3249b230cec84f1e5242fa902b (patch) | |
tree | 3096c7f85f45c56f38ecc74e21b7160047c480fd /src/java/org/apache/fop | |
parent | 4e35ea0f7b118d4fe6bc6fb9c4a82c147db02eb7 (diff) | |
download | xmlgraphics-fop-1560478d80eb8a3249b230cec84f1e5242fa902b.tar.gz xmlgraphics-fop-1560478d80eb8a3249b230cec84f1e5242fa902b.zip |
Two constants I'd like to reuse elsewhere.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/util/CharUtilities.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/util/CharUtilities.java b/src/java/org/apache/fop/util/CharUtilities.java index 10307967f..c1a537521 100644 --- a/src/java/org/apache/fop/util/CharUtilities.java +++ b/src/java/org/apache/fop/util/CharUtilities.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,12 @@ public class CharUtilities { public static final int XMLWHITESPACE = 4; + /** zero-width space */ + public static final char ZERO_WIDTH_SPACE = '\u200B'; + /** zero-width no-break space */ + public static final char ZERO_WIDTH_NOBREAK_SPACE = '\uFEFF'; + + /** * Utility class: Constructor prevents instantiating when subclassed. */ @@ -110,7 +116,7 @@ public class CharUtilities { (c == '\u00A0' // no-break space || c == '\u202F' // narrow no-break space || c == '\u3000' // ideographic space - || c == '\uFEFF'); // zero width no-break space + || c == ZERO_WIDTH_NOBREAK_SPACE); // zero width no-break space } /** |