From 66752c4ccead60c4fed33cf93d28cf5a7825df68 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Tue, 28 Nov 2023 04:00:26 +0100 Subject: [PATCH] better names --- c/uca/sifter/unisifeggs.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/c/uca/sifter/unisifeggs.cpp b/c/uca/sifter/unisifeggs.cpp index 5d6dc3c63..60d05bd54 100644 --- a/c/uca/sifter/unisifeggs.cpp +++ b/c/uca/sifter/unisifeggs.cpp @@ -162,14 +162,14 @@ constexpr char32_t parse_hex_codepoint(std::string_view hex) { } constexpr CodePointRange parse_hex_codepoint_range(std::string_view hex) { - auto const front_end = hex.find(".."); - if (front_end == std::string_view::npos) { - char32_t const front = parse_hex_codepoint(hex); - return CodePointRange::Inclusive(front, front); + auto const first_dot = hex.find(".."); + if (first_dot == std::string_view::npos) { + char32_t const code_point = parse_hex_codepoint(hex); + return CodePointRange::Inclusive(code_point, code_point); } return CodePointRange::Inclusive( - parse_hex_codepoint(hex.substr(0, front_end)), - parse_hex_codepoint(hex.substr(front_end + 2))); + parse_hex_codepoint(hex.substr(0, first_dot)), + parse_hex_codepoint(hex.substr(first_dot + 2))); } class UCD {