MCPcopy Create free account
hub / github.com/BaseXdb/basex / curr

Method curr

basex-core/src/main/java/org/basex/gui/text/TextEditor.java:1271–1273  ·  view source on GitHub ↗

Returns the current character, or the newline character if the position is out of bounds. @return current character, or newline

()

Source from the content-addressed store, hash-verified

1269 * @return current character, or newline
1270 */
1271 private int curr() {
1272 return pos < 0 || pos >= size() ? '\n' : cp(text, pos);
1273 }
1274
1275 /**
1276 * Returns the current character and moves to the next character.

Callers 15

nextWordMethod · 0.95
bolMethod · 0.95
lineStartMethod · 0.95
backMethod · 0.95
prevMethod · 0.95
forwardMethod · 0.95
bracketMethod · 0.95
deletePrevMethod · 0.95
selectWordMethod · 0.95
nextMethod · 0.95
getColorMethod · 0.45
getColorMethod · 0.45

Calls 2

sizeMethod · 0.95
cpMethod · 0.45

Tested by

no test coverage detected