|
|
|
@ -7,32 +7,26 @@ public class FactionUtil {
|
|
|
|
|
return splitString[splitString.length-1];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String getInstituteLeader(String instNm, boolean person) {
|
|
|
|
|
public static String getInstituteLeader(String instNm, boolean lastChar) {
|
|
|
|
|
String result = "";
|
|
|
|
|
|
|
|
|
|
if(person) {
|
|
|
|
|
if(instNm.endsWith("시청") || instNm.endsWith("군청")) {
|
|
|
|
|
result = instNm.substring(0, instNm.length()-1);
|
|
|
|
|
} else if(instNm.endsWith("구")) {
|
|
|
|
|
result = instNm+"청";
|
|
|
|
|
} else {
|
|
|
|
|
result = instNm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(result.endsWith("군")){
|
|
|
|
|
result += "수";
|
|
|
|
|
} else {
|
|
|
|
|
result += "장";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(instNm.endsWith("시청") || instNm.endsWith("군청")) {
|
|
|
|
|
result = instNm.substring(0, instNm.length()-1);
|
|
|
|
|
} else if(instNm.endsWith("구")) {
|
|
|
|
|
result = instNm+"청";
|
|
|
|
|
} else {
|
|
|
|
|
result = instNm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(instNm.endsWith("시") || instNm.endsWith("군") || instNm.endsWith("구")) {
|
|
|
|
|
result = instNm+"청";
|
|
|
|
|
} else {
|
|
|
|
|
result = instNm;
|
|
|
|
|
}
|
|
|
|
|
if(result.endsWith("군")){
|
|
|
|
|
result += "수";
|
|
|
|
|
} else {
|
|
|
|
|
result += "장";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!lastChar) {
|
|
|
|
|
result = result.substring(0, result.length()-1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|