summaryrefslogtreecommitdiff
path: root/AK/JsonParser.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-03 19:06:41 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-03 19:06:41 +0200
commitea9ac3155d1774f13ac4e9a96605c0e85a8f299e (patch)
tree79965fb23c2c75ae48fcbf1300e40671ea90f0df /AK/JsonParser.cpp
parentb139fb9f383911130336ac995cd2671662f9c963 (diff)
downloadserenity-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.cpp6
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('?');
}