Include optimize

This commit is contained in:
Akkadius 2025-06-22 03:54:01 -05:00
parent 16148621d6
commit 4a53f94b7e
2 changed files with 9 additions and 9 deletions

View File

@ -42,6 +42,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <random>
#include <string>
@ -50,6 +51,12 @@
#include "strings_legacy.cpp" // legacy c functions
#include "strings_misc.cpp" // anything non "Strings" scoped
#ifdef _WINDOWS
#include <ctype.h>
#include <functional>
#include <algorithm>
#endif
std::string Strings::Random(size_t length)
{
static auto &chrs = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

View File

@ -36,22 +36,15 @@
#define _STRINGUTIL_H_
#include <charconv>
#include <sstream>
#include <cstring>
#include <string_view>
#include <string>
#include <vector>
#include <cstdarg>
#include <type_traits>
#ifndef _WIN32
// this doesn't appear to affect linux-based systems..need feedback for _WIN64
#endif
#ifdef _WINDOWS
#ifdef _WIN32
#include <ctype.h>
#include <functional>
#include <algorithm>
#endif
#include "types.h"