From 1560478d80eb8a3249b230cec84f1e5242fa902b Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 24 Aug 2005 20:52:20 +0000 Subject: 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 --- src/java/org/apache/fop/util/CharUtilities.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/java/org/apache') 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 } /** -- cgit v1.2.3