2019-09-24 10:27:46 -04:00
|
|
|
/*
|
|
|
|
|
ISC License
|
|
|
|
|
|
2026-02-23 13:22:21 -06:00
|
|
|
Copyright (c) 2026, Antonio SJ Musumeci <trapexit@spawn.link>
|
2019-09-24 10:27:46 -04:00
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2026-03-01 13:58:06 -06:00
|
|
|
#include "base_types.h"
|
2025-09-17 23:51:16 -04:00
|
|
|
#include "fs_path.hpp"
|
|
|
|
|
|
2019-09-24 10:27:46 -04:00
|
|
|
#include <string>
|
2025-08-21 23:42:58 -04:00
|
|
|
#include <string_view>
|
2019-09-24 10:27:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace str
|
|
|
|
|
{
|
2025-08-21 23:42:58 -04:00
|
|
|
int from(const std::string_view, bool *);
|
|
|
|
|
int from(const std::string_view, int *);
|
2026-03-01 13:58:06 -06:00
|
|
|
int from(const std::string_view, u64 *);
|
|
|
|
|
int from(const std::string_view, s64 *);
|
2025-08-21 23:42:58 -04:00
|
|
|
int from(const std::string_view, std::string *);
|
|
|
|
|
int from(const std::string_view, const std::string *);
|
2025-09-17 23:51:16 -04:00
|
|
|
int from(const std::string_view, fs::path *);
|
2019-09-24 10:27:46 -04:00
|
|
|
}
|