diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-03 19:06:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-03 19:06:41 +0200 |
commit | ea9ac3155d1774f13ac4e9a96605c0e85a8f299e (patch) | |
tree | 79965fb23c2c75ae48fcbf1300e40671ea90f0df /AK/JsonParser.cpp | |
parent | b139fb9f383911130336ac995cd2671662f9c963 (diff) | |
download | serenity-ea9ac3155d1774f13ac4e9a96605c0e85a8f299e.zip |
Unicode: s/codepoint/code_point/g
Unicode calls them "code points" so let's follow their style.
Diffstat (limited to 'AK/JsonParser.cpp')
-rw-r--r-- | AK/JsonParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/JsonParser.cpp b/AK/JsonParser.cpp index 5697287ef6..c6ab77c96b 100644 --- a/AK/JsonParser.cpp +++ b/AK/JsonParser.cpp @@ -126,9 +126,9 @@ String JsonParser::consume_quoted_string() sb.append(consume()); sb.append(consume()); - auto codepoint = AK::StringUtils::convert_to_uint_from_hex(sb.to_string()); - if (codepoint.has_value()) { - final_sb.append_codepoint(codepoint.value()); + auto code_points = AK::StringUtils::convert_to_uint_from_hex(sb.to_string()); + if (code_points.has_value()) { + final_sb.append_code_points(code_points.value()); } else { final_sb.append('?'); } |