Research portable Memory game | Исследовать портируемую игру Память
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

20 řádky
385B

  1. #include "llm.h"
  2. bool llm_isDigit(const std::string &str) {
  3. return
  4. !str.empty() &&
  5. str.find_first_not_of("0123456789") == std::string::npos;
  6. }
  7. bool llm_startsWith(
  8. const std::string &str,
  9. const std::string &prefix
  10. ) {
  11. // https://stackoverflow.com/a/40441240
  12. return str.rfind(prefix, 0) == 0;
  13. }
  14. int llm_strToInt(const std::string &str) {
  15. return std::stoi(str);
  16. }