diff font/text_stream.cc @ 65:4416cfac86ae

Convert EUC-JP files to UTF8
author Thibaut Girka <thib@sitedethib.com>
date Fri, 26 Nov 2010 10:53:15 +0100
parents ddbcbd000206
children
line wrap: on
line diff
--- a/font/text_stream.cc
+++ b/font/text_stream.cc
@@ -223,15 +223,15 @@ void TextStream::RemoveName(char* name, 
 	Iterator it;
 	for (it = container.begin(); it != container.end(); it++) {
 		if (it->type == TextElem::escape && it->impl.Escape.type == TextElem::name_start) {
-			// 行頭の名前?
+			// 茵鐚
 			int pt = it - container.begin();
 			Iterator name_start = it;
 			for (; it != container.end(); it++) {
 				if (it->type == TextElem::escape && it->impl.Escape.type == TextElem::name_end) break;
 			}
 			if (it != container.end()) {
-				// 名前が見つかったので削除
-				if (name) { // 保存先があるなら保存する
+				// 荀ゃcу
+				if (name) { // 篆絖篆絖
 					Iterator name_end = it;
 					int pos = 0;
 					namelen--;
@@ -247,7 +247,7 @@ void TextStream::RemoveName(char* name, 
 						}
 					}
 					name[pos] = 0;
-					name = 0; // 最初に出た名前のみ保存する
+					name = 0; // 冴推絖
 				}
 				it++;
 				container.erase(name_start, it);
@@ -341,7 +341,7 @@ std::string TextStream::Save(void) {
 				*buf++ = (code/0x10) + 'A';
 				*buf++ = (code%0x10) + 'A';
 			} else {
-				code = codeconv_euc_to_sjis(code); // save file の漢字コードはSJIS
+				code = codeconv_euc_to_sjis(code); // save file 羲√潟若SJIS
 				*buf++ = code/256;
 				*buf++ = code%256;
 			}