summaryrefslogtreecommitdiff
path: root/src/util/string.i
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-03-27 14:04:44 -0500
committerGitHub <noreply@github.com>2020-03-27 12:04:44 -0700
commit4b7fc20dcce9eefdf568937f5e2c54141c4f5c5b (patch)
tree70dc3d084b73f1ea313a214245a792295f75215d /src/util/string.i
parenta64866663f10db4ffadd2d48500cda05c4831f0e (diff)
Move string utility file (#4164)
Moves the string file to string.h. This is required since other required utilities will soon need to be added to regexp.h.
Diffstat (limited to 'src/util/string.i')
-rw-r--r--src/util/string.i25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/util/string.i b/src/util/string.i
new file mode 100644
index 000000000..1ded901aa
--- /dev/null
+++ b/src/util/string.i
@@ -0,0 +1,25 @@
+%{
+#include "util/string.h"
+%}
+
+%rename(CVC4String) String;
+%rename(CVC4StringHashFunction) CVC4::strings::StringHashFunction;
+
+%ignore CVC4::String::String(const std::string&);
+
+%rename(assign) CVC4::String::operator=(const String&);
+%rename(getChar) CVC4::String::operator[](const unsigned int) const;
+%rename(equals) CVC4::String::operator==(const String&) const;
+%ignore CVC4::String::operator!=(const String&) const;
+%rename(less) CVC4::String::operator<(const String&) const;
+%rename(lessEqual) CVC4::String::operator<=(const String&) const;
+%rename(greater) CVC4::String::operator>(const String&) const;
+%rename(greaterEqual) CVC4::String::operator>=(const String&) const;
+
+%rename(apply) CVC4::strings::StringHashFunction::operator()(const ::CVC4::String&) const;
+
+%ignore CVC4::operator<<(std::ostream&, const String&);
+
+%apply int &OUTPUT { int &c };
+%include "util/string.h"
+%clear int &c;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback