Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boxbeam/RedLib
/ assertChar
Method
assertChar
src/redempt/redlib/json/JSONParser.java:48–52 ·
view source on GitHub ↗
(char c)
Source
from the content-addressed store, hash-verified
46
}
47
48
private
void
assertChar(char c) {
49
if
(advance() != c) {
50
throw
new
IllegalArgumentException(
"Invalid JSON, expected '"
+ c +
"' at position "
+ (pos - 1));
51
}
52
}
53
54
private
boolean isWhitespace() {
55
char c = peek();
Callers
4
decimal
Method · 0.95
string
Method · 0.95
list
Method · 0.95
map
Method · 0.95
Calls
1
advance
Method · 0.95
Tested by
no test coverage detected