aboutsummaryrefslogtreecommitdiff
path: root/odb/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-14 16:36:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-21 15:40:00 +0200
commitf14743ef28248ea8a8ad9bae1c7c3d6a354da257 (patch)
treebcfa7088ae70d7fff9656b102c7c5a9d9ad17f73 /odb/context.cxx
parentadd8086259fb21f1e42aba6546c55e607d87ce93 (diff)
Add support for SQLite type system, adjust code generators
Diffstat (limited to 'odb/context.cxx')
-rw-r--r--odb/context.cxx28
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)
{