#include <string>
#include <vector>
#include "File.h"
Namespaces | |
namespace | MISC |
Functions | |
std::string | MISC::ReadFile (const MPMA::Filename &fname) |
Reads a text file into a string. | |
bool | MISC::LoadStringList (std::vector< std::string > &outList, const MPMA::Filename &file) |
Load a list of strings from the lines of a file. | |
std::string | MISC::MakeLower (const std::string &str) |
Converts a string to lowercase. | |
std::string | MISC::StripFirstLine (const std::string &str) |
Removes the first line from a string. | |
std::string | MISC::StripPadding (const std::string &str) |
Removes leading and trailing spaces, tabs, and line breaks. | |
unsigned int | MISC::CountBits (unsigned int data) |
Counts the number of bits set to 1. | |
int | MISC::GetHighestBit (unsigned int data) |
Determines the highest bit number thats set, or -1 if none. | |
void | MISC::ExplodeString (const std::string &inData, std::vector< std::string > &outData, const std::string &inDeliminators=" \t\n") |
Breaks a string, seperated by any number of deliminators, into a list of strings. | |
unsigned int | MISC::ParseHexString (const std::string &s) |
Gets the int value out of a C-style hexadecimal string (assumes no whitespace or bad characters). |