Class Sub

  • All Implemented Interfaces:
    Text

    public final class Sub
    extends TextEnvelope
    Extract a substring from a Text.

    There is no thread-safety guarantee.

    Since:
    0.11
    • Constructor Detail

      • Sub

        public Sub​(CharSequence text,
                   int strt)
        Ctor.
        Parameters:
        text - The String
        strt - Start position in the text
      • Sub

        public Sub​(CharSequence text,
                   int strt,
                   int finish)
        Ctor.
        Parameters:
        text - The String
        strt - Start position in the text
        finish - End position in the text
      • Sub

        public Sub​(Text text,
                   int strt)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
      • Sub

        public Sub​(Text text,
                   Scalar<Integer> strt)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
      • Sub

        public Sub​(Text text,
                   Func<? super String,​Integer> strt)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
      • Sub

        public Sub​(Text text,
                   int strt,
                   int finish)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
        finish - End position in the text
      • Sub

        public Sub​(Text text,
                   int strt,
                   Scalar<Integer> finish)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
        finish - End position in the text
      • Sub

        public Sub​(Text text,
                   int strt,
                   Func<? super String,​Integer> finish)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
        finish - End position in the text
      • Sub

        public Sub​(Text text,
                   Scalar<Integer> strt,
                   Scalar<Integer> finish)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
        finish - End position in the text
      • Sub

        public Sub​(Text text,
                   Scalar<Integer> strt,
                   Func<? super String,​Integer> finish)
        Ctor.
        Parameters:
        text - The Text
        strt - Start position in the text
        finish - End position in the text
      • Sub

        public Sub​(Text text,
                   Func<? super String,​Integer> start,
                   Func<? super String,​Integer> end)
        Ctor.
        Parameters:
        text - The Text
        start - Start position in the text
        end - End position in the text