Class XParsing


  • public final class XParsing
    extends Object
    • Constructor Detail

      • XParsing

        public XParsing()
    • Method Detail

      • skipWhiteSpaces

        public static final int skipWhiteSpaces​(char[] input,
                                                int iStart,
                                                int iBound)
      • skipWhiteSpacesReversed

        public static final int skipWhiteSpacesReversed​(char[] input,
                                                        int iStart,
                                                        int iBound)
      • skipSimpleQuote

        public static final int skipSimpleQuote​(char[] input,
                                                int iStart,
                                                int iBound)
        Skips to the position beyond the second occurance of the current character (input[iStart]). This simple logic does NOT support escaping.
        Parameters:
        input -
        iStart -
        iBound -
      • skipToSimpleTerminator

        public static final int skipToSimpleTerminator​(char[] input,
                                                       int iStart,
                                                       int iBound,
                                                       char terminator)
      • parseSimpleQuote

        public static final String parseSimpleQuote​(char[] input,
                                                    int iStart,
                                                    int iBound)
      • parseSimpleQuote

        public static final int parseSimpleQuote​(char[] input,
                                                 int iStart,
                                                 int iBound,
                                                 Consumer<? super String> receiver)
      • parseToSimpleTerminator

        public static final int parseToSimpleTerminator​(char[] input,
                                                        int iStart,
                                                        int iBound,
                                                        char terminator,
                                                        Consumer<? super String> receiver)
      • checkStartsWith

        public static final int checkStartsWith​(char[] input,
                                                int iStart,
                                                int iBound,
                                                String subject)
      • checkStartsWith

        public static final int checkStartsWith​(char[] input,
                                                int iStart,
                                                int iBound,
                                                String subject,
                                                String contextHint)
      • startsWith

        public static final boolean startsWith​(char[] input,
                                               int iStart,
                                               int iBound,
                                               String subject)
      • startsWith

        public static final boolean startsWith​(char[] input,
                                               int iStart,
                                               int iBound,
                                               char[] subject)
      • checkIncompleteInput

        public static final void checkIncompleteInput​(int i,
                                                      int iBound)
      • checkIncompleteInput

        public static final void checkIncompleteInput​(int i,
                                                      int iBound,
                                                      String contextHint)