summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-13 13:12:33 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-10-13 13:14:23 +0100
commitfa85f0fc32b105bef5948585a7d7a38c2910854b (patch)
tree62df5d4c99b3ae89274c848895fa94445f870edb /src/string.hh
parentb6f2b872b003639e3a596a2e4a1b817529ebd729 (diff)
Refactor regex uses, do not reference boost except in regex.hh
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/string.hh b/src/string.hh
index 573853fe..e31a3173 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -6,13 +6,12 @@
#include "utf8.hh"
#include <string>
-#include <boost/regex.hpp>
+#include <climits>
+#include <cstring>
namespace Kakoune
{
-using Regex = boost::regex;
-
class StringView;
class String : public std::string
@@ -288,9 +287,6 @@ inline String codepoint_to_str(Codepoint cp)
return String(str);
}
-String option_to_string(const Regex& re);
-void option_from_string(StringView str, Regex& re);
-
int str_to_int(StringView str);
String to_string(int val);