16 string tempArg(arg_prefix);
17 tempArg += target_arg;
18 const char* target = tempArg.c_str();
20 for (
int i = 0; i < argc; ++i) {
30 string tempArg( arg_prefix );
32 for(
int i = 0; i < argc; ++i)
34 if (
auto m = ctre::match<Paths::g_useProjectPattern>(
argv[i]))
36 projectOut = m.get<2>();
47 return !(
IS_ZERO(number) && s[0] != 0);
53 char *pr = str, *pw = str;
56 pw += *pw != charToRemove;
62 return str ==
nullptr || str[0] ==
'\0';
67 static int comma =
'\0';
68 static char retbuf[30];
69 char *p = &retbuf[
sizeof(retbuf) - 1];
73 struct lconv *lcp = localeconv();
75 if (lcp->thousands_sep !=
nullptr &&
76 *lcp->thousands_sep !=
'\0')
77 comma = *lcp->thousands_sep;
85 if (i % 3 == 0 && i != 0)
87 *--p =
'0' + number % 10;
90 }
while (number != 0);
mi_stl_allocator< T > dvd_allocator
dvd_allocator< char > s_allocator
bool ExtractStartupProject(int argc, char **argv, string &projectOut, const char *arg_prefix="--")
bool IsEmptyOrNull(const char *str) noexcept
void CStringRemoveChar(char *str, char charToRemove) noexcept
bool FindCommandLineArgument(int argc, char **argv, const char *target_arg, const char *arg_prefix="--")
bool IsNumber(const T_str &s)
char * commaprint(U64 number) noexcept
bool IS_ZERO(const T X) noexcept
std::basic_istringstream< char, std::char_traits< char >, dvd_allocator< char > > istringstream