Commit graph

2 commits

Author SHA1 Message Date
Patryk Obara
fa4b74c760 Add safe wrapper macro for sprintf 2020-12-11 07:12:58 +01:00
Patryk Obara
a8d7a4da63 Move starts_with function to a new header
New header is introduced to gradually move our new string-related helper
functions in there (out of support header).

Rewrite starts_with function, as it was triggering debug assertion
in MSVC: "Expression: cannot seek string iterator after end" (when
calling starts_with("opengl", "auto").

Limit starts_with interface only to our actual usecases, such as:

    starts_with("prefix", text)

This way we can save time on calculating string length of hardcoded
prefix.

Drop ends_with function, as we don't use it any more - the code using it
was refactored some time ago.
2020-11-14 17:33:03 +01:00