@@ -23,18 +23,6 @@ namespace cucumber_cpp::library::cucumber_expression
2323
2424 return demarcationMap;
2525 }
26-
27- const std::map<TokenType, std::string>& TokenTypeMap ()
28- {
29- static const std::map<TokenType, std::string> tokenTypeMap = {
30- { TokenType::alternation, " alternation" },
31- { TokenType::beginParameter, " beginParameter" },
32- { TokenType::endParameter, " endParameter" },
33- { TokenType::beginOptional, " beginOptional" },
34- { TokenType::endOptional, " endOptional" },
35- };
36- return tokenTypeMap;
37- }
3826 }
3927
4028 std::string Node::Text ()
@@ -68,12 +56,12 @@ namespace cucumber_cpp::library::cucumber_expression
6856 return std::get<std::vector<Node>>(children);
6957 }
7058
71- bool Token::IsEscapeCharacter (char ch)
59+ bool Token::IsEscapeCharacter (unsigned char ch)
7260 {
7361 return ch == ' \\ ' ;
7462 }
7563
76- TokenType Token::TypeOf (char ch)
64+ TokenType Token::TypeOf (unsigned char ch)
7765 {
7866 if (std::isspace (ch) != 0 )
7967 return TokenType::whiteSpace;
@@ -84,7 +72,7 @@ namespace cucumber_cpp::library::cucumber_expression
8472 return TokenType::text;
8573 }
8674
87- bool Token::CanEscape (char ch)
75+ bool Token::CanEscape (unsigned char ch)
8876 {
8977 if (std::isspace (ch) != 0 )
9078 return true ;
0 commit comments