Changeset 1276 for cpp/common/util-string.cpp
- Timestamp:
- 09/09/23 15:20:04 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/util-string.cpp
r1130 r1276 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 1Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 108 108 } 109 109 110 bool ends_with(std::string_view str, std::string_view suffix) 111 { 112 return str.size() >= suffix.size() && 0 == str.compare(str.size() - suffix.size(), suffix.size(), suffix); 113 } 114 115 110 116 char* strmove(char *a, char *b) //strcpy that works well for overlapping strings ("Source and destination overlap") 111 117 {
Note: See TracChangeset
for help on using the changeset viewer.