From 64aa9e062d09d33de99ab4ddc0dc73828af2543e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Aug 2009 17:54:26 +0200 Subject: Convert to the lower case naming convention --- cli/lexer.ixx | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'cli/lexer.ixx') diff --git a/cli/lexer.ixx b/cli/lexer.ixx index 7e84cfc..f346575 100644 --- a/cli/lexer.ixx +++ b/cli/lexer.ixx @@ -3,89 +3,89 @@ // copyright : Copyright (c) 2009 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -// Lexer::Char +// lexer::xchar // -inline Lexer::Char:: -Char (IntType v, std::size_t l, std::size_t c) +inline lexer::xchar:: +xchar (int_type v, std::size_t l, std::size_t c) : v_ (v), l_ (l), c_ (c) { } -inline Lexer::Char:: -operator CharType () const +inline lexer::xchar:: +operator char_type () const { - return Traits::to_char_type (v_); + return traits_type::to_char_type (v_); } -inline Lexer::Char::IntType Lexer::Char:: +inline lexer::xchar::int_type lexer::xchar:: value () const { return v_; } -inline std::size_t Lexer::Char:: +inline std::size_t lexer::xchar:: line () const { return l_; } -inline std::size_t Lexer::Char:: +inline std::size_t lexer::xchar:: column () const { return c_; } -// Lexer +// lexer // -inline bool Lexer:: +inline bool lexer:: valid () const { return valid_; } -inline bool Lexer:: +inline bool lexer:: is_alpha (char c) const { return std::isalpha (c, loc_); } -inline bool Lexer:: +inline bool lexer:: is_oct_digit (char c) const { return std::isdigit (c, loc_) && c != '8' && c != '9'; } -inline bool Lexer:: +inline bool lexer:: is_dec_digit (char c) const { return std::isdigit (c, loc_); } -inline bool Lexer:: +inline bool lexer:: is_hex_digit (char c) const { return std::isxdigit (c, loc_); } -inline bool Lexer:: +inline bool lexer:: is_alnum (char c) const { return std::isalnum (c, loc_); } -inline bool Lexer:: +inline bool lexer:: is_space (char c) const { return std::isspace (c, loc_); } -inline bool Lexer:: -is_eos (Char const& c) const +inline bool lexer:: +is_eos (xchar const& c) const { - return c.value () == Char::Traits::eof (); + return c.value () == xchar::traits_type::eof (); } -inline char Lexer:: +inline char lexer:: to_upper (char c) const { return std::toupper (c, loc_); -- cgit v1.1