Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

데블스캠프2011/셋째날/String만들기: Difference between revisions

From ZeroWiki
imported>linflus
No edit summary
imported>linflus
No edit summary
Line 16: Line 16:
|  
|  
|-
|-
| concat
| str.concat(str) == "abcdefabcdef"
|-
| contains
| str.contains("bcd") == TRUE
|-
| endsWith
| str.endsWith("ef") == TRUE
|-
| startsWith
| str.startsWith("abc") == TRUE
|-
| equals
| str.equals(new String("abcdef")) == TRUE
|-
| equalsIgnoreCase
| str.equalsIgnoreCase(new String("ABcdEf")) == TRUE
|-
| indexOf
|  
|  
|-
| isEmpty
|
|-
| lastIndexOf
|
|-
| length
|
|-
| replace
|
|-
| split
|
|-
| subString
|
|-
| format
|
|-
| trim
|
|-
| toLower
|
|-
| toUpper
|
|-
| valueOf
|  
|  
|}
|}
concat
str.concat(str) == "abcdefabcdef"
contains
str.contains("bcd") == TRUE
endsWith
str.endsWith("ef") == TRUE
startsWith
str.startsWith("abc") == TRUE
equals
str.equals(new String("abcdef")) == TRUE
equalsIgnoreCase
str.equalsIgnoreCase(new String("ABcdEf")) == TRUE
indexOf
str.
isEmpty
lastIndexOf
length
replace
split
subString
format
trim
toLower
toUpper
valueOf



Revision as of 05:15, 29 June 2011

  • 사용 언어 : C++

String str = new String("abcdef");

함수
charAt str.charAt(3) == 'd'
compareTo
compareToIgnoreCase
concat str.concat(str) == "abcdefabcdef"
contains str.contains("bcd") == TRUE
endsWith str.endsWith("ef") == TRUE
startsWith str.startsWith("abc") == TRUE
equals str.equals(new String("abcdef")) == TRUE
equalsIgnoreCase str.equalsIgnoreCase(new String("ABcdEf")) == TRUE
indexOf
isEmpty
lastIndexOf
length
replace
split
subString
format
trim
toLower
toUpper
valueOf