diff options
author | 2016-02-28 11:09:00 +1100 | |
---|---|---|
committer | 2016-02-28 13:36:19 +1100 | |
commit | aec01e740736db267e452f0ed5947649f79e3408 (patch) | |
tree | 633ca7d80a756bfcc05d871817201c729e55142d /src/lib/util/corestr.cpp | |
parent | 3cba23966f6c1c6f9ee616e5af00ebcfcb0d0b0a (diff) |
Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format
Update MAME to use new function
Instantiate ODR-used static constant members
Make some of the UI code more localisable
Remove use of retired functions in tools
Diffstat (limited to 'src/lib/util/corestr.cpp')
-rw-r--r-- | src/lib/util/corestr.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib/util/corestr.cpp b/src/lib/util/corestr.cpp index ce5976869d4..3c65bcb3db6 100644 --- a/src/lib/util/corestr.cpp +++ b/src/lib/util/corestr.cpp @@ -208,25 +208,6 @@ int strvprintf(std::string &str, const char *format, va_list args) return result; } -int strprintf(std::string &str, const char *format, ...) -{ - va_list ap; - va_start(ap, format); - int retVal = strvprintf(str, format, ap); - va_end(ap); - return retVal; -} - -std::string strformat(const char *format, ...) -{ - std::string retVal; - va_list ap; - va_start(ap, format); - strvprintf(retVal, format, ap); - va_end(ap); - return retVal; -} - int strcatvprintf(std::string &str, const char *format, va_list args) { char tempbuf[4096]; @@ -237,15 +218,6 @@ int strcatvprintf(std::string &str, const char *format, va_list args) return result; } -int strcatprintf(std::string &str, const char *format, ...) -{ - va_list ap; - va_start(ap, format); - int retVal = strcatvprintf(str, format, ap); - va_end(ap); - return retVal; -} - void strdelchr(std::string& str, char chr) { for (size_t i = 0; i < str.length(); i++) |