Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THEONE10211024/ColorPhrase
/ functions
Functions
33 in github.com/THEONE10211024/ColorPhrase
⨍
Functions
33
◇
Types & classes
16
↓ 6 callers
Method
consume
Advances the current character position without any error checking. Consuming beyond the end of the string can only happen if this parser contains a b
src/com/medusa/lib/ColorPhrase.java:310
↓ 5 callers
Method
getLeftSeparator
()
src/com/medusa/lib/ColorPhrase.java:192
↓ 3 callers
Method
getFormattedStart
Returns the character index after expansion.
src/com/medusa/lib/ColorPhrase.java:342
↓ 2 callers
Method
getRightSeparator
()
src/com/medusa/lib/ColorPhrase.java:196
↓ 2 callers
Method
toString
Returns the raw pattern without expanding keys; only useful for debugging. Does not pass through to {@link #format()} because doing so would drop all
src/com/medusa/lib/ColorPhrase.java:320
↓ 1 callers
Method
checkPattern
check if the pattern has legal separators @return
src/com/medusa/lib/ColorPhrase.java:232
↓ 1 callers
Method
createDoubleLinkWithToken
cut the pattern with the separators and linked them with double link structure;
src/com/medusa/lib/ColorPhrase.java:159
↓ 1 callers
Method
expand
Replace text in {@code target} with this token's associated value.
src/com/medusa/lib/ColorPhrase.java:336
↓ 1 callers
Method
format
Returns the text after replacing all keys with values. @throws IllegalArgumentException if any keys are not replaced.
src/com/medusa/lib/ColorPhrase.java:209
↓ 1 callers
Method
from
Entry point into this API. @throws IllegalArgumentException if pattern contains any syntax errors.
src/com/medusa/lib/ColorPhrase.java:60
↓ 1 callers
Method
getFormattedLength
Returns the number of characters after expansion.
src/com/medusa/lib/ColorPhrase.java:339
↓ 1 callers
Method
inner
(Token prev)
src/com/medusa/lib/ColorPhrase.java:254
↓ 1 callers
Method
innerColor
init the innerColor @param _innerColor @return
src/com/medusa/lib/ColorPhrase.java:150
↓ 1 callers
Method
leftSeparator
Consumes and returns a token representing two consecutive curly brackets.
src/com/medusa/lib/ColorPhrase.java:294
↓ 1 callers
Method
lookahead
Returns the next character in the input pattern without advancing.
src/com/medusa/lib/ColorPhrase.java:301
↓ 1 callers
Method
outer
Consumes and returns a token for a sequence of text.
src/com/medusa/lib/ColorPhrase.java:282
↓ 1 callers
Method
outerColor
init the outerColor @param _outerColor @return
src/com/medusa/lib/ColorPhrase.java:139
↓ 1 callers
Method
token
Returns the next token from the input pattern, or null when finished parsing.
src/com/medusa/lib/ColorPhrase.java:177
↓ 1 callers
Method
withSeparator
set the separator of the target,called after from() method. @param _separator @return
src/com/medusa/lib/ColorPhrase.java:122
Method
ColorPhrase
(CharSequence pattern)
src/com/medusa/lib/ColorPhrase.java:105
Method
InnerToken
(Token prev, String _inner, int _color)
src/com/medusa/lib/ColorPhrase.java:406
Method
LeftSeparatorToken
(Token prev, char _leftSeparator)
src/com/medusa/lib/ColorPhrase.java:382
Method
OuterToken
(Token prev, int textLength, int _color)
src/com/medusa/lib/ColorPhrase.java:358
Method
Token
(Token prev)
src/com/medusa/lib/ColorPhrase.java:329
Method
expand
(SpannableStringBuilder target)
src/com/medusa/lib/ColorPhrase.java:364
Method
expand
(SpannableStringBuilder target)
src/com/medusa/lib/ColorPhrase.java:387
Method
expand
(SpannableStringBuilder target)
src/com/medusa/lib/ColorPhrase.java:412
Method
getFormattedLength
()
src/com/medusa/lib/ColorPhrase.java:372
Method
getFormattedLength
()
src/com/medusa/lib/ColorPhrase.java:393
Method
getFormattedLength
()
src/com/medusa/lib/ColorPhrase.java:422
Method
onClick
(View v)
src/com/example/colorphrase/MainActivity.java:27
Method
onCreate
(Bundle savedInstanceState)
src/com/example/colorphrase/MainActivity.java:18
Method
onCreateOptionsMenu
(Menu menu)
src/com/example/colorphrase/MainActivity.java:36