namespace simgear {
namespace strutils {
+ /**
+ * utf8ToLatin1() convert utf8 to latin, useful for accent character (i.e éâàîè...)
+ */
+ std::string utf8ToLatin1( std::string & s_utf8 );
+
// /**
// * atof() wrapper for "string" type
// */
WCharVec convertUtf8ToWString(const std::string& a);
#endif
+ /**
+ * Get md5 hash of raw data.
+ */
+ std::string md5(const unsigned char* data, size_t num);
+ std::string md5(const char* data, size_t num);
+ std::string md5(const std::string& str);
+
/**
* convert base-64 encoded data to raw bytes (possibly with embedded
* NULs). Throws an exception if input data is not base64, or is