@@ -53,24 +53,24 @@ struct fmt::formatter<sdl::GUID> : formatter<std::string> {
5353namespace { // NOLINT(cert-dcl59-cpp,google-build-namespaces)
5454
5555 // decode a single_hex_number
56- [[nodiscard]] constexpr const_utils::expected <u8 , std::string> single_hex_number (char input) {
56+ [[nodiscard]] constexpr const_utils::Expected <u8 , std::string> single_hex_number (char input) {
5757 if (input >= ' 0' && input <= ' 9' ) {
58- return const_utils::expected <u8 , std::string>::good_result (static_cast <u8 >(input - ' 0' ));
58+ return const_utils::Expected <u8 , std::string>::good_result (static_cast <u8 >(input - ' 0' ));
5959 }
6060
6161 if (input >= ' A' && input <= ' F' ) {
62- return const_utils::expected <u8 , std::string>::good_result (static_cast <u8 >(input - ' A' + 10 ));
62+ return const_utils::Expected <u8 , std::string>::good_result (static_cast <u8 >(input - ' A' + 10 ));
6363 }
6464
6565 if (input >= ' a' && input <= ' f' ) {
66- return const_utils::expected <u8 , std::string>::good_result (static_cast <u8 >(input - ' a' + 10 ));
66+ return const_utils::Expected <u8 , std::string>::good_result (static_cast <u8 >(input - ' a' + 10 ));
6767 }
6868
69- return const_utils::expected <u8 , std::string>::error_result (" the input must be a valid hex character" );
69+ return const_utils::Expected <u8 , std::string>::error_result (" the input must be a valid hex character" );
7070 }
7171
7272 // decode a single 2 digit color value in hex
73- [[nodiscard]] constexpr const_utils::expected <u8 , std::string> single_hex_color_value (const char * input) {
73+ [[nodiscard]] constexpr const_utils::Expected <u8 , std::string> single_hex_color_value (const char * input) {
7474
7575 const auto first = single_hex_number (input[0 ]); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
7676
@@ -80,14 +80,14 @@ namespace { //NOLINT(cert-dcl59-cpp,google-build-namespaces)
8080
8181 PROPAGATE (second, u8 , std::string);
8282
83- return const_utils::expected <u8 , std::string>::good_result ((first.value () << 4 ) | second.value ());
83+ return const_utils::Expected <u8 , std::string>::good_result ((first.value () << 4 ) | second.value ());
8484 }
8585
86- [[nodiscard]] constexpr const_utils::expected <sdl::GUID, std::string>
86+ [[nodiscard]] constexpr const_utils::Expected <sdl::GUID, std::string>
8787 get_guid_from_string_impl (const char * input, std::size_t size) {
8888
8989 if (size == 0 ) {
90- return const_utils::expected <sdl::GUID, std::string>::error_result (
90+ return const_utils::Expected <sdl::GUID, std::string>::error_result (
9191 " not enough data to determine the literal type"
9292 );
9393 }
@@ -102,7 +102,7 @@ namespace { //NOLINT(cert-dcl59-cpp,google-build-namespaces)
102102 width = 3 ;
103103 } else {
104104
105- return const_utils::expected <sdl::GUID, std::string>::error_result (" Unrecognized guid literal" );
105+ return const_utils::Expected <sdl::GUID, std::string>::error_result (" Unrecognized guid literal" );
106106 }
107107
108108
@@ -122,15 +122,15 @@ namespace { //NOLINT(cert-dcl59-cpp,google-build-namespaces)
122122 result.at (i) = value;
123123 }
124124
125- return const_utils::expected <sdl::GUID, std::string>::good_result (sdl::GUID{ result });
125+ return const_utils::Expected <sdl::GUID, std::string>::good_result (sdl::GUID{ result });
126126 }
127127
128128} // namespace
129129
130130
131131namespace detail {
132132
133- [[nodiscard]] constexpr const_utils::expected <sdl::GUID, std::string> get_guid_from_string (const std::string& input
133+ [[nodiscard]] constexpr const_utils::Expected <sdl::GUID, std::string> get_guid_from_string (const std::string& input
134134 ) {
135135 return get_guid_from_string_impl (input.c_str (), input.size ());
136136 }
0 commit comments