Class SpaceChecker


  • public class SpaceChecker
    extends Object
    • Constructor Detail

      • SpaceChecker

        public SpaceChecker()
    • Method Detail

      • checkUnitSpacing

        public int checkUnitSpacing​(ITextUnit tu,
                                    LocaleId trgLoc)
        Checks and fixes white spaces for a given text unit. The text unit is passed as a parameter is modified.
        Parameters:
        tu - original text unit
        trgLoc - target locale to update
        Returns:
        the number of changes done.
      • checkSpaces

        public int checkSpaces​(TextFragment srcFrag,
                               TextFragment trgFrag)
        Checks and fixes white spaces for a given text fragment. The target fragment passed as a parameter is modified.
        Parameters:
        srcFrag - original fragment
        trgFrag - the fragment to fix.
        Returns:
        the number of changes done.