MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / String

Class String

Ports/CLDC11/src/java/lang/String.java:36–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34/// The Java language provides special support for the string concatenation operator (+), and for conversion of other objects to strings. String concatenation is implemented through the StringBuffer class and its append method. String conversions are implemented through the method toString, defined by Object and inherited by all classes in Java. For additional information on string concatenation and conversion, see Gosling, Joy, and Steele, The Java Language Specification.
35/// Since: JDK1.0, CLDC 1.0 See Also:Object.toString(), StringBuffer, StringBuffer.append(boolean), StringBuffer.append(char), StringBuffer.append(char[]), StringBuffer.append(char[], int, int), StringBuffer.append(int), StringBuffer.append(long), StringBuffer.append(java.lang.Object), StringBuffer.append(java.lang.String)
36public final class String implements CharSequence, Comparable<String> {
37
38 public static final Comparator<String> CASE_INSENSITIVE_ORDER = new Comparator<String>() {
39 public int compare(String o1, String o2){
40 return o1.compareToIgnoreCase(o2);
41 }
42 };
43 /// Initializes a newly created String object so that it represents an empty character sequence.
44 public String(){
45 //TODO codavaj!!
46 }
47
48 /// Construct a new String by converting the specified array of bytes using the platform's default character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the byte array.
49 /// bytes - The bytes to be converted into characters
50 /// JDK1.1
51 public String(byte[] bytes){
52 //TODO codavaj!!
53 }
54
55 /// Construct a new String by converting the specified subarray of bytes using the platform's default character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the subarray.
56 /// bytes - The bytes to be converted into charactersoff - Index of the first byte to convertlen - Number of bytes to convert
57 /// JDK1.1
58 public String(byte[] bytes, int off, int len){
59 //TODO codavaj!!
60 }
61
62 /// Construct a new String by converting the specified subarray of bytes using the specified character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the subarray.
63 /// bytes - The bytes to be converted into charactersoff - Index of the first byte to convertlen - Number of bytes to convertenc - The name of a character encoding
64 /// - If the named encoding is not supported
65 /// JDK1.1
66 public String(byte[] bytes, int off, int len, java.lang.String enc) throws java.io.UnsupportedEncodingException{
67 //TODO codavaj!!
68 }
69
70 /// Construct a new String by converting the specified array of bytes using the specified character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the byte array.
71 /// bytes - The bytes to be converted into charactersenc - The name of a supported character encoding
72 /// - If the named encoding is not supported
73 ///
74 /// #### Since
75 ///
76 /// 8.0
77 public String(byte[] bytes, java.nio.charset.Charset charset) throws java.io.UnsupportedEncodingException {
78 this(bytes, 0, bytes.length, charset.displayName());
79 }
80
81 /// Construct a new String by converting the specified array of bytes using the specified character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the byte array.
82 /// bytes - The bytes to be converted into charactersenc - The name of a supported character encoding
83 /// - If the named encoding is not supported
84 /// JDK1.1
85 public String(byte[] bytes, java.lang.String enc) throws java.io.UnsupportedEncodingException{
86 //TODO codavaj!!
87 }
88
89 /// Allocates a new String so that it represents the sequence of characters currently contained in the character array argument. The contents of the character array are copied; subsequent modification of the character array does not affect the newly created string.
90 /// value - the initial value of the string.
91 /// - if value is null.
92 public String(char[] value){
93 //TODO codavaj!!

Callers 15

port.jsFile · 0.50
isIOSUserAgentFunction · 0.50
isIPadUserAgentFunction · 0.50
getQueryParameterFunction · 0.50
stringifyThrowableFunction · 0.50
checkDisplayInitStateFunction · 0.50
emitDiagLineFunction · 0.50
cn1WorkerFontFacePromiseFunction · 0.50
toStrFunction · 0.50
isLikelyFormObjectFunction · 0.50
ensureComponentBoundsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected