Class StringSearch.CollationPCE

  • Enclosing class:
    StringSearch

    private static class StringSearch.CollationPCE
    extends java.lang.Object
    Java port of ICU4C UCollationPCE (usrchimp.h)
    • Method Detail

      • processCE

        private long processCE​(int ce)
      • nextProcessed

        public long nextProcessed​(StringSearch.CollationPCE.Range range)
        Get the processed ordering priority of the next collation element in the text. A single character may contain more than one collation element. Note: This is equivalent to UCollationPCE::nextProcessed(int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
        Parameters:
        range - receiving the iterator index before/after fetching the CE.
        Returns:
        The next collation elements ordering, otherwise returns PROCESSED_NULLORDER if an error has occurred or if the end of string has been reached
      • previousProcessed

        public long previousProcessed​(StringSearch.CollationPCE.Range range)
        Get the processed ordering priority of the previous collation element in the text. A single character may contain more than one collation element. Note: This is equivalent to UCollationPCE::previousProcessed(int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
        Parameters:
        range - receiving the iterator index before/after fetching the CE.
        Returns:
        The previous collation elements ordering, otherwise returns PROCESSED_NULLORDER if an error has occurred or if the start of string has been reached.
      • isContinuation

        private static boolean isContinuation​(int ce)