summaryrefslogtreecommitdiff
path: root/cli/lexer.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-08-22 17:54:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-08-22 17:54:26 +0200
commit64aa9e062d09d33de99ab4ddc0dc73828af2543e (patch)
tree4ca7cd26dec156b2d4c28f100679e3db12dace91 /cli/lexer.ixx
parentdc7b8d2063dac867f2e87dbe764d2f3df2331e95 (diff)
Convert to the lower case naming convention
Diffstat (limited to 'cli/lexer.ixx')
-rw-r--r--cli/lexer.ixx42
1 files changed, 21 insertions, 21 deletions
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_);