mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Core: String::Make
This commit is contained in:
parent
9458f03c96
commit
54226f44d3
6 changed files with 278 additions and 4 deletions
|
|
@ -404,6 +404,9 @@ public:
|
|||
|
||||
template <class Maker>
|
||||
static String MakeSmall(Maker m) { String s; int n = m(s.chr); ASSERT(n <= 14); s.SLen() = n; s.Dsyn(); return s; }
|
||||
|
||||
template <class Maker>
|
||||
static String Make(int alloc, Maker m);
|
||||
};
|
||||
|
||||
inline std::string to_string(const String& s) { return std::string(s.Begin(), s.End()); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue