Commit 46be327c authored by fallenstardust's avatar fallenstardust

修正中文string中带空格字段显示不完整

parent 355e6048
...@@ -945,8 +945,8 @@ ...@@ -945,8 +945,8 @@
!setname 0xed 地中族 サブテラー !setname 0xed 地中族 サブテラー
!setname 0x10ed 地中族邪界 サブテラーマリス !setname 0x10ed 地中族邪界 サブテラーマリス
!setname 0xee 秘旋谍 SPYRAL !setname 0xee 秘旋谍 SPYRAL
!setname 0x10ee 秘旋谍装备 SPYRAL GEAR !setname 0x10ee 秘旋谍装备 SPYRAL_GEAR
!setname 0x20ee 秘旋谍任务 SPYRAL MISSION !setname 0x20ee 秘旋谍任务 SPYRAL_MISSION
!setname 0xef 堕天使 !setname 0xef 堕天使
!setname 0xf0 风魔女 WW(ウィンド・ウィッチ) !setname 0xf0 风魔女 WW(ウィンド・ウィッチ)
!setname 0xf1 十二兽 十二獣 !setname 0xf1 十二兽 十二獣
......
...@@ -139,7 +139,12 @@ public class StringManager implements Closeable { ...@@ -139,7 +139,12 @@ public class StringManager implements Closeable {
// System.out.println(Arrays.toString(words)); // System.out.println(Arrays.toString(words));
//setcode //setcode
long id = toNumber(words[1]); long id = toNumber(words[1]);
CardSet cardSet = new CardSet(id, words[2]); CardSet cardSet;
if (words.length >= 5) {
cardSet = new CardSet(id, words[2] + " " + words[3]);
} else {
cardSet = new CardSet(id, words[2]);
}
int i = mCardSets.indexOf(cardSet); int i = mCardSets.indexOf(cardSet);
if (i >= 0) { if (i >= 0) {
CardSet cardSet1 = mCardSets.get(i); CardSet cardSet1 = mCardSets.get(i);
...@@ -183,7 +188,7 @@ public class StringManager implements Closeable { ...@@ -183,7 +188,7 @@ public class StringManager implements Closeable {
for (int i = 0; i < mCardSets.size(); i++) { for (int i = 0; i < mCardSets.size(); i++) {
CardSet cardSet = mCardSets.get(i); CardSet cardSet = mCardSets.get(i);
String[] setNames = cardSet.getName().split("\\|"); String[] setNames = cardSet.getName().split("\\|");
if(setNames[0].equalsIgnoreCase(key)){ if (setNames[0].equalsIgnoreCase(key)) {
return cardSet.getCode(); return cardSet.getCode();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment