summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-13 14:23:07 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-13 18:43:38 +0200
commit26f0fd4cc6577e52b08604d32469b221242bfb9c (patch)
treeb63d2936ac57352a0cb3a4a863cc735dacedaf1c /src/string.cc
parent56ab33c9d6dc0255bf15ebd1fbc216766ffb247c (diff)
Use more std::* for string handling
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/string.cc b/src/string.cc
index cecf0279..e7dd167f 100644
--- a/src/string.cc
+++ b/src/string.cc
@@ -5,33 +5,6 @@
namespace Kakoune
{
-String int_to_str(int value)
-{
- const bool negative = value < 0;
- if (negative)
- value = -value;
-
- char buffer[16];
- size_t pos = sizeof(buffer);
- buffer[--pos] = 0;
- do
- {
- buffer[--pos] = '0' + (value % 10);
- value /= 10;
- }
- while (value);
-
- if (negative)
- buffer[--pos] = '-';
-
- return String(buffer + pos);
-}
-
-int str_to_int(const String& str)
-{
- return atoi(str.c_str());
-}
-
std::vector<String> split(const String& str, char separator)
{
auto begin = str.begin();