Changeset 1125 for cpp/common
- Timestamp:
- 04/11/21 02:09:28 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/util-string.h
r1025 r1125 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 13 13 char* strmove(char *a, char *b); //strcpy that works well for overlapping strings ("Source and destination overlap") 14 14 bool str_starts_with(const char *str, const char *prefix); 15 inline bool starts_with( string& str, const char *prefix) { return str_starts_with(str.c_str(),prefix); } //std::string.starts_with(...) since c++2015 inline bool starts_with(const string& str, const char *prefix) { return str_starts_with(str.c_str(),prefix); } //std::string.starts_with(...) since c++20 16 16 17 17 string ssprintf(const char* format, ...);
Note: See TracChangeset
for help on using the changeset viewer.