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
  f689c599_8725_00e0_186d_a8613721207b["readEscapeCharacter()"]
  66b15724_450e_758d_e9ff_8fb2f09212ec["nextString()"]
  66b15724_450e_758d_e9ff_8fb2f09212ec -->|calls| f689c599_8725_00e0_186d_a8613721207b
  2ea9368b_02eb_2d26_b6e7_aaf2153de2a0["syntaxError()"]
  f689c599_8725_00e0_186d_a8613721207b -->|calls| 2ea9368b_02eb_2d26_b6e7_aaf2153de2a0
  style f689c599_8725_00e0_186d_a8613721207b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata/src/json-shade/java/org/springframework/boot/configurationmetadata/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