StringX
org.matheclipse.core.expression

Class StringX

    • Method Detail

      • copyValueOf

        public static StringX copyValueOf(char[] data)
        Parameters:
        data -
        Returns:
      • copyValueOf

        public static StringX copyValueOf(char[] data,                  int offset,                  int count)
        Parameters:
        data -
        offset -
        count -
        Returns:
      • valueOf

        public static StringX valueOf(boolean b)
        Parameters:
        b -
        Returns:
      • valueOf

        public static StringX valueOf(char c)
        Parameters:
        c -
        Returns:
      • valueOf

        public static StringX valueOf(char[] data)
        Parameters:
        data -
        Returns:
      • valueOf

        public static StringX valueOf(char[] data,              int offset,              int count)
        Parameters:
        data -
        offset -
        count -
        Returns:
      • valueOf

        public static StringX valueOf(double d)
        Parameters:
        d -
        Returns:
      • valueOf

        public static StringX valueOf(float f)
        Parameters:
        f -
        Returns:
      • valueOf

        public static StringX valueOf(int i)
        Parameters:
        i -
        Returns:
      • valueOf

        public static StringX valueOf(long l)
        Parameters:
        l -
        Returns:
      • valueOf

        public static StringX valueOf(Object obj)
        Parameters:
        obj -
        Returns:
      • charAt

        public char charAt(int index)
        Parameters:
        index -
        Returns:
      • compareTo

        public int compareTo(IExpr obj)
        Compares this expression with the specified expression for order. Returns a negative integer, zero, or a positive integer as this expression is canonical less than, equal to, or greater than the specified expression.
        Specified by:
        compareTo in interface Element<IExpr>
        Specified by:
        compareTo in interface Comparable<IExpr>
        Specified by:
        compareTo in interface IExpr
        Returns:
        0 if this is equal to b, -1 if this is less then b, else +1.
      • compareTo

        public int compareTo(StringX anotherString)
        Parameters:
        anotherString -
        Returns:
      • compareToIgnoreCase

        public int compareToIgnoreCase(StringX str)
        Parameters:
        str -
        Returns:
      • concat

        public String concat(StringX str)
        Parameters:
        str -
        Returns:
      • contentEquals

        public boolean contentEquals(StringBuffer sb)
        Parameters:
        sb -
        Returns:
      • endsWith

        public boolean endsWith(String suffix)
        Parameters:
        suffix -
        Returns:
      • equals

        public boolean equals(Object obj)
        Description copied from interface: Element
        Test if this is equal to b.
        Specified by:
        equals in interface Element<IExpr>
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to b, else false.
      • equalsIgnoreCase

        public boolean equalsIgnoreCase(String anotherString)
        Parameters:
        anotherString -
        Returns:
      • getBytes

        public byte[] getBytes()
        Returns:
      • getChars

        public void getChars(int srcBegin,            int srcEnd,            char[] dst,            int dstBegin)
        Parameters:
        srcBegin -
        srcEnd -
        dst -
        dstBegin -
      • hashCode

        public int hashCode()
        Description copied from interface: Element
        Hashcode of this Element.
        Specified by:
        hashCode in interface Element<IExpr>
        Overrides:
        hashCode in class Object
        Returns:
        the hashCode.
      • hierarchy

        public int hierarchy()
        Description copied from interface: IExpr
        A unique integer ID for the implementation of this expression
        Specified by:
        hierarchy in interface IExpr
        Returns:
        a unique integer id for the implementation of this expression
      • indexOf

        public int indexOf(int ch)
        Parameters:
        ch -
        Returns:
      • indexOf

        public int indexOf(int ch,          int fromIndex)
        Parameters:
        ch -
        fromIndex -
        Returns:
      • indexOf

        public int indexOf(String str)
        Parameters:
        str -
        Returns:
      • indexOf

        public int indexOf(String str,          int fromIndex)
        Parameters:
        str -
        fromIndex -
        Returns:
      • intern

        public String intern()
        Returns:
      • internalFormString

        public String internalFormString(boolean symbolsAsFactoryMethod,                        int depth)
        Description copied from interface: IExpr
        Return the internal Java form of this expression.
        Specified by:
        internalFormString in interface IExpr
        Overrides:
        internalFormString in class ExprImpl
        Parameters:
        symbolsAsFactoryMethod - if true use the F.symbol() method, otherwise print the symbol name.
        depth - the recursion depth of this call. 0 indicates "recurse without a limit".
      • lastIndexOf

        public int lastIndexOf(int ch)
        Parameters:
        ch -
        Returns:
      • lastIndexOf

        public int lastIndexOf(int ch,              int fromIndex)
        Parameters:
        ch -
        fromIndex -
        Returns:
      • lastIndexOf

        public int lastIndexOf(String str)
        Parameters:
        str -
        Returns:
      • lastIndexOf

        public int lastIndexOf(String str,              int fromIndex)
        Parameters:
        str -
        fromIndex -
        Returns:
      • length

        public int length()
      • matches

        public boolean matches(String regex)
      • regionMatches

        public boolean regionMatches(boolean ignoreCase,                    int toffset,                    String other,                    int ooffset,                    int len)
      • regionMatches

        public boolean regionMatches(int toffset,                    String other,                    int ooffset,                    int len)
      • replace

        public String replace(char oldChar,             char newChar)
      • startsWith

        public boolean startsWith(String prefix)
        Parameters:
        prefix -
        Returns:
      • startsWith

        public boolean startsWith(String prefix,                 int toffset)
        Parameters:
        prefix -
        toffset -
        Returns:
      • subSequence

        public CharSequence subSequence(int start,                       int end)
        Parameters:
        start -
        end -
        Returns:
      • substring

        public String substring(int beginIndex)
        Parameters:
        beginIndex -
        Returns:
      • substring

        public String substring(int beginIndex,               int endIndex)
        Parameters:
        beginIndex -
        endIndex -
        Returns:
      • toCharArray

        public char[] toCharArray()
        Returns:
      • toLowerCase

        public String toLowerCase()
        Returns:
      • toLowerCase

        public String toLowerCase(Locale locale)
        Parameters:
        locale -
        Returns:
      • toUpperCase

        public String toUpperCase()
        Returns:
      • toUpperCase

        public String toUpperCase(Locale locale)
        Parameters:
        locale -
        Returns:
      • trim

        public String trim()
        Returns:
      • head

        public ISymbol head()
        Description copied from interface: IExpr
        If this object is an instance of IAST get the first element (offset 0) of the IAST list (i.e. get(0) ).
        Specified by:
        head in interface IExpr
        Specified by:
        head in class ExprImpl
        Returns:
        the head of the expression, which must not be null.
      • accept

        public <T> T accept(IVisitor<T> visitor)
        Accept a visitor with return type T
        Specified by:
        accept in interface IExpr
      • accept

        public boolean accept(IVisitorBoolean visitor)
        Accept a visitor with return type boolean
        Specified by:
        accept in interface IExpr
      • accept

        public int accept(IVisitorInt visitor)
        Accept a visitor with return type int
        Specified by:
        accept in interface IExpr
        Returns:

SCaVis 2.2 © jWork.ORG