|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.util.NlsString
public class NlsString
A simple facade to a set of operations on strings that considers all national language encodings
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
NlsString()
|
Method Summary | |
---|---|
static int |
getEbcdicLength(String strText,
int ccsid)
Return the length in EBCBIC bytes of this Unicode String |
static int |
getEbcdicLength(String strText,
int ccsid,
boolean isPureDbcs)
Return the length in EBCBIC bytes of this Unicode String |
static int |
getEbcdicLengthWithEmbeddedShifts(String strText,
int ccsid)
If a Unicode string already has shift characters embedded what is its length in EBCDIC bytes. |
static String |
pad(String strText,
int targetLength,
char c,
int ccsid)
Pad this Unicode string to the desired length in EBCDIC bytes with the given character |
static String |
substring(String string,
int start,
int end,
int ccsid)
Return the Unicode substring of the given Unicode string given the EBCDIC byte offsets |
static String |
truncate(String strText,
int targetLength,
int ccsid,
boolean isPureDbcs)
Truncate this Unicode string to the desired length in EBCDIC bytes If it is too short, return as is |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public NlsString()
Method Detail |
---|
public static int getEbcdicLength(String strText, int ccsid)
public static int getEbcdicLength(String strText, int ccsid, boolean isPureDbcs)
public static int getEbcdicLengthWithEmbeddedShifts(String strText, int ccsid)
public static String pad(String strText, int targetLength, char c, int ccsid)
public static String truncate(String strText, int targetLength, int ccsid, boolean isPureDbcs)
public static String substring(String string, int start, int end, int ccsid)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |