| Package | Description |
|---|---|
| net.lecousin.framework.io.text |
IO on characters and text.
|
| net.lecousin.framework.util |
Utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
CharacterStreamWritePool.write(IString s)
Write the given string.
|
| Modifier and Type | Class and Description |
|---|---|
class |
UnprotectedString
Unprotected and mutable string.
|
class |
UnprotectedStringBuffer
Array of UnprotectedString, allowing to add and remove characters without re-allocating a character array.
|
class |
UnprotectedStringBufferLimited
Same as UnprotectedStringBuffer, but with a maximum size.
|
| Modifier and Type | Method and Description |
|---|---|
IString |
IString.append(char c)
Append a character.
|
default IString |
IString.append(char[] chars)
Append characters.
|
IString |
IString.append(char[] chars,
int offset,
int len)
Append characters.
|
IString |
IString.append(CharSequence s)
Append characters.
|
IString |
IString.removeEndChars(int nb)
Remove the given number of characters at the end.
|
IString |
IString.removeStartChars(int nb)
Remove the given number of characters at the beginning.
|
IString |
IString.replace(char oldChar,
char newChar)
Replace all occurrences of oldChar into newChar.
|
IString |
IString.substring(int start)
Return a sub-string starting at the given position until the end.
|
IString |
IString.substring(int start,
int end)
Return a sub-string starting at the given start position (included) until the given end position (excluded).
|
IString |
IString.toLowerCase()
Convert this string to lower case.
|
IString |
IString.toUpperCase()
Convert this string to upper case.
|
default IString |
IString.trim()
Remove spaces characters at the beginning and the end of this string, and return this instance.
|
IString |
IString.trimBeginning()
Remove spaces characters at the beginning of this string.
|
IString |
IString.trimEnd()
Remove spaces characters at the end of this string.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends IString> |
IString.split(char sep)
Return a list of strings, by splitting the current string using the given character as separator.
|
| Constructor and Description |
|---|
UnprotectedString(IString s)
Creates an UnprotectedString from the given String (a copy of characters is done).
|
UnprotectedStringBuffer(IString s)
Create a string with the given one.
|
Copyright © 2019. All rights reserved.