diff options
Diffstat (limited to 'odb/context.cxx')
-rw-r--r-- | odb/context.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/odb/context.cxx b/odb/context.cxx index 28d6749..090b13c 100644 --- a/odb/context.cxx +++ b/odb/context.cxx @@ -135,6 +135,20 @@ context () context* context::current_; +string context:: +upcase (string const& s) +{ + string r; + string::size_type n (s.size ()); + + r.reserve (n); + + for (string::size_type i (0); i < n; ++i) + r.push_back (toupper (s[i])); + + return r; +} + void context:: diverge (streambuf* sb) { @@ -163,20 +177,6 @@ member_type (semantics::data_member& m, string const& key_prefix) return *indirect_value<semantics::type*> (m.type (), key); } -string context:: -upcase (string const& s) -{ - string r; - string::size_type n (s.size ()); - - r.reserve (n); - - for (string::size_type i (0); i < n; ++i) - r.push_back (toupper (s[i])); - - return r; -} - bool context:: comp_value_ (semantics::class_& c) { |