summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-10 18:44:08 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-10 18:44:08 -0500
commitac885a907525589aa56266d9a2527cdc7127c9cb (patch)
treed95c1cd20cb7df81b643f35c840c379fcae3f547 /src/utils.cc
parent0ac2dc28104253faf82a3ed3d12bb16a1a150067 (diff)
downloadfork-ledger-ac885a907525589aa56266d9a2527cdc7127c9cb.tar.gz
fork-ledger-ac885a907525589aa56266d9a2527cdc7127c9cb.tar.bz2
fork-ledger-ac885a907525589aa56266d9a2527cdc7127c9cb.zip
All strings passed to Python are now Unicode objects
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/utils.cc b/src/utils.cc
index 2f2899fb..6cef1a8c 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -406,8 +406,16 @@ void report_memory(std::ostream& out, bool report_all)
}
}
+} // namespace ledger
+
+#endif // VERIFY_ON
+
+/**********************************************************************
+ *
+ * String wrapper
+ */
-#if defined(STRING_VERIFY_ON)
+namespace ledger {
string::string() : std::string() {
TRACE_CTOR(string, "");
@@ -445,18 +453,10 @@ string::~string() throw() {
TRACE_DTOR(string);
}
-#endif // STRING_VERIFY_ON
+string empty_string("");
-} // namespace ledger
-
-#endif // VERIFY_ON
-
-ledger::string empty_string("");
-
-ledger::strings_list split_arguments(const char * line)
+strings_list split_arguments(const char * line)
{
- using namespace ledger;
-
strings_list args;
char buf[4096];
@@ -506,6 +506,8 @@ ledger::strings_list split_arguments(const char * line)
return args;
}
+} // namespace ledger
+
/**********************************************************************
*
* Logging