Home / Function/ readEscapeCharacter() — spring-boot Function Reference

readEscapeCharacter() — spring-boot Function Reference

Architecture documentation for the readEscapeCharacter() function in JSONTokener.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  456ee97a_fb70_0a4a_5d08_7b1fb0fd3d3d["readEscapeCharacter()"]
  a35df52e_f777_54bb_0b5d_4e438a30aff6["nextString()"]
  a35df52e_f777_54bb_0b5d_4e438a30aff6 -->|calls| 456ee97a_fb70_0a4a_5d08_7b1fb0fd3d3d
  5d37c1ba_6649_7ef7_7cb2_9bcac45ebb3e["syntaxError()"]
  456ee97a_fb70_0a4a_5d08_7b1fb0fd3d3d -->|calls| 5d37c1ba_6649_7ef7_7cb2_9bcac45ebb3e
  style 456ee97a_fb70_0a4a_5d08_7b1fb0fd3d3d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/json-shade/java/org/springframework/boot/cli/json/JSONTokener.java lines 235–265

	private char readEscapeCharacter() throws JSONException {
		char escaped = this.in.charAt(this.pos++);
		switch (escaped) {
			case 'u':
				if (this.pos + 4 > this.in.length()) {
					throw syntaxError("Unterminated escape sequence");
				}
				String hex = this.in.substring(this.pos, this.pos + 4);
				this.pos += 4;
				return (char) Integer.parseInt(hex, 16);

			case 't':
				return '\t';

			case 'b':
				return '\b';

			case 'n':
				return '\n';

			case 'r':
				return '\r';

			case 'f':
				return '\f';

			case '\'', '"', '\\':
			default:
				return escaped;
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does readEscapeCharacter() do?
readEscapeCharacter() is a function in the spring-boot codebase.
What does readEscapeCharacter() call?
readEscapeCharacter() calls 1 function(s): syntaxError.
What calls readEscapeCharacter()?
readEscapeCharacter() is called by 1 function(s): nextString.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free