Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes

Compile time string manipulation in C++

This test can catch more than just upper-case characters, and it can also miss some: i > 0 && str[i] >= 'A' && str[i] <= 'Z' In a 8859-1 ...
Toby Speight's user avatar
  • 76.2k
2 votes

Compile time string manipulation in C++

Unclear identifier: size_t ret = 0; What's ret? Return? As GetSnakeCaseSize() returns "...
Harith's user avatar
  • 7,004

Only top scored, non community-wiki answers of a minimum length are eligible