From f14743ef28248ea8a8ad9bae1c7c3d6a354da257 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Mar 2011 16:36:58 +0200 Subject: Add support for SQLite type system, adjust code generators --- odb/context.cxx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'odb/context.cxx') 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 (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) { -- cgit v1.1