set a the string label using a UTF encoded string
| 69 | |
| 70 | // set a the string label using a UTF encoded string |
| 71 | void CharSamp::SetLabel(string str) { |
| 72 | if (label32_ != NULL) { |
| 73 | delete []label32_; |
| 74 | label32_ = NULL; |
| 75 | } |
| 76 | string_32 str32; |
| 77 | CubeUtils::UTF8ToUTF32(str.c_str(), &str32); |
| 78 | SetLabel(reinterpret_cast<const char_32 *>(str32.c_str())); |
| 79 | } |
| 80 | |
| 81 | // creates a CharSamp object from file |
| 82 | CharSamp *CharSamp::FromCharDumpFile(CachedFile *fp) { |
no test coverage detected