Files
Xenia-Canary/src/poly/string.h
2014-08-16 02:30:23 -07:00

33 lines
995 B
C++

/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef POLY_STRING_H_
#define POLY_STRING_H_
#include <string>
#include <poly/platform.h>
#if XE_LIKE_WIN32
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif // XE_LIKE_WIN32
namespace poly {
std::string to_string(const std::wstring& source);
std::wstring to_wstring(const std::string& source);
std::string::size_type find_first_of_case(const std::string& target,
const std::string& search);
} // namespace poly
#endif // POLY_STRING_H_