Class CharMirror

java.lang.Object
org.apache.fop.complexscripts.util.CharMirror

public final class CharMirror extends Object

Mirror related utilities.

This work was originally authored by Glenn Adams (gadams@apache.org).

  • Method Details

    • mirror

      public static String mirror(String s)
      Mirror characters that are designated as having the bidi mirrorred property.
      Parameters:
      s - a string whose characters are to be mirrored
      Returns:
      the resulting string
    • hasMirrorable

      public static boolean hasMirrorable(String s)
      Determine if string has a mirrorable character.
      Parameters:
      s - a string whose characters are to be tested for mirrorability
      Returns:
      true if some character can be mirrored