forked from Prof-Butts/Hook_XWACockpitLook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
14 lines (12 loc) · 798 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#include <string>
#include <vector>
std::string Trim(const std::string& str);
std::string GetStringWithoutExtension(const std::string& str);
std::vector<std::string> GetFileLines(const std::string& path, const std::string& section = std::string());
std::string GetFileKeyValue(const std::vector<std::string>& lines, const std::string& key);
int GetFileKeyValueInt(const std::vector<std::string>& lines, const std::string& key, int defaultValue = 0);
std::vector<std::string> Tokennize(const std::string& str);
std::vector<std::vector<std::string>> GetFileListValues(const std::vector<std::string>& lines);
std::vector<int> GetFileListIntValues(const std::vector<std::string>& lines);
std::vector<unsigned short> GetFileListUnsignedShortValues(const std::vector<std::string>& lines);