BString: Add ScanWithFormat convenience method.

This commit is contained in:
Michael Lotz
2014-11-02 11:38:45 +01:00
parent 969af8044a
commit 3fe7b3f72c
2 changed files with 25 additions and 0 deletions
+6
View File
@@ -61,6 +61,12 @@ public:
va_list args)
__attribute__((__format__(__printf__, 2, 0)));
int ScanWithFormat(const char* format, ...)
__attribute__((__format__(__scanf__, 2, 3)));
int ScanWithFormatVarArgs(const char* format,
va_list args)
__attribute__((__format__(__scanf__, 2, 0)));
// Substring copying
BString& CopyInto(BString& into, int32 fromOffset,
int32 length) const;