com.esri.sde.sdk.pe
Class PeString

java.lang.Object
  extended by com.esri.sde.sdk.pe.PeString

public final class PeString
extends java.lang.Object

String processing routines


Constructor Summary
PeString()
           
 
Method Summary
static boolean equals(java.lang.String s1, java.lang.String s2)
          Same as String.equalsIgnoreCase(), but also ignores whitespace and "-" and "_" characters.
static boolean equalsLen(java.lang.String s1, java.lang.String s2, int n)
          compares for the specified number of characters
static boolean equalsLen1(java.lang.String s1, java.lang.String s2)
          compares for the length of s1
static boolean equalsLen2(java.lang.String s1, java.lang.String s2)
          compares for the length of s2
static int ignoreLength(java.lang.String s)
          counts non-ignoreable characters in the string
static int indexOf(java.lang.String str, java.lang.String sub)
          Find the index of a substring, ignoring case
static boolean isIgnoreable(char c)
          returns whether a character can be ignored for comparing
static int nameToType(java.lang.String name)
          Convert an object name to an object type
static java.lang.String PeVersion()
          returns a string containing the PE version
static java.lang.String typeToName(int type)
          Convert an object type to an object name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeString

public PeString()
Method Detail

PeVersion

public static java.lang.String PeVersion()
returns a string containing the PE version


isIgnoreable

public static boolean isIgnoreable(char c)
returns whether a character can be ignored for comparing


ignoreLength

public static int ignoreLength(java.lang.String s)
counts non-ignoreable characters in the string


equals

public static boolean equals(java.lang.String s1,
                             java.lang.String s2)
Same as String.equalsIgnoreCase(), but also ignores whitespace and "-" and "_" characters.


equalsLen1

public static boolean equalsLen1(java.lang.String s1,
                                 java.lang.String s2)
compares for the length of s1


equalsLen2

public static boolean equalsLen2(java.lang.String s1,
                                 java.lang.String s2)
compares for the length of s2


equalsLen

public static boolean equalsLen(java.lang.String s1,
                                java.lang.String s2,
                                int n)
compares for the specified number of characters


indexOf

public static int indexOf(java.lang.String str,
                          java.lang.String sub)
Find the index of a substring, ignoring case


typeToName

public static java.lang.String typeToName(int type)
Convert an object type to an object name


nameToType

public static int nameToType(java.lang.String name)
Convert an object name to an object type