You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
750 B
28 lines
750 B
package ru.defend.defdevteam.tstu;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.regex.Matcher;
|
|
import java.util.regex.Pattern;
|
|
|
|
/**
|
|
* Created by itsmy on 10.02.2017.
|
|
*/
|
|
|
|
public class OldParser {
|
|
|
|
public static StringBuffer removeUTFCharacters(String data){
|
|
Pattern p = Pattern.compile("\\\\u(\\p{XDigit}{4})");
|
|
Matcher m = p.matcher(data);
|
|
StringBuffer buf = new StringBuffer(data.length());
|
|
while (m.find()) {
|
|
String ch = String.valueOf((char) Integer.parseInt(m.group(1), 16));
|
|
m.appendReplacement(buf, Matcher.quoteReplacement(ch));
|
|
}
|
|
m.appendTail(buf);
|
|
return buf;
|
|
}
|
|
|
|
public ArrayList<WebActivity.groupList> parseGroup(){
|
|
return null;
|
|
}
|
|
}
|
|
|