summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-08 20:09:54 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-08 20:09:54 +0100
commite0424ba01764f71421fee35ff5053e0b857ebc43 (patch)
tree13dc0f0fc2d5c81776644996f8845f758d897d6d /src/string.hh
parent20d20ae1dc0946a0b77ff4fb5d1bd2754ccb7ed3 (diff)
Minor formatting fixes (very long lines)
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/string.hh b/src/string.hh
index 75f2e8b0..c7a7e1c2 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -49,7 +49,10 @@ public:
memoryview<char> data() const { return memoryview<char>(std::string::data(), size()); }
- String substr(ByteCount pos, ByteCount length = -1) const { return String{std::string::substr((int)pos, (int)length)}; }
+ String substr(ByteCount pos, ByteCount length = -1) const
+ {
+ return String{std::string::substr((int)pos, (int)length)};
+ }
String substr(CharCount pos, CharCount length = INT_MAX) const
{
auto b = utf8::advance(begin(), end(), (int)pos);