You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/08/24 22:52:25 UTC
svn commit: r239924 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java
Author: jeremias
Date: Wed Aug 24 13:52:20 2005
New Revision: 239924
URL: http://svn.apache.org/viewcvs?rev=239924&view=rev
Log:
Two constants I'd like to reuse elsewhere.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java?rev=239924&r1=239923&r2=239924&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java Wed Aug 24 13:52:20 2005
@@ -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 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 @@
(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
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org