diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-04-27 08:34:49 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-04-27 08:35:09 +1000 |
| commit | 8438b3317500d9fff62453e54e8643d063e02282 (patch) | |
| tree | bfeb41787b31b5a1d7deceb89fb2fcb99514e9d1 /src/string_utils.cc | |
| parent | f10eb9faa30428172033a4e4e689a76b7b0510c2 (diff) | |
Add a debug regex command to dump regex instructions
Diffstat (limited to 'src/string_utils.cc')
| -rw-r--r-- | src/string_utils.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc index 801cd5a3..a0f74dc6 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -125,6 +125,13 @@ InplaceString<15> to_string(int val) return res; } +InplaceString<15> to_string(unsigned val) +{ + InplaceString<15> res; + res.m_length = sprintf(res.m_data, "%u", val); + return res; +} + InplaceString<23> to_string(long int val) { InplaceString<23> res; |
