本文整理了Java中org.eclipse.xtext.util.Strings.unpack()
方法的一些代码示例,展示了Strings.unpack()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Strings.unpack()
方法的具体详情如下:
包路径:org.eclipse.xtext.util.Strings
类名称:Strings
方法名:unpack
暂无
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.util
private static void unpack(List<String> strings, String packed) {
int delimiterIndex = packed.indexOf(":");
int size = Integer.parseInt(packed.substring(0, delimiterIndex));
int endIndex = delimiterIndex + 1 + size;
strings.add(packed.substring(delimiterIndex + 1, endIndex));
if (endIndex < packed.length()) {
unpack(strings, packed.substring(endIndex));
}
}
代码示例来源:origin: org.eclipse.xtext/util
private static void unpack(List<String> strings, String packed) {
int delimiterIndex = packed.indexOf(":");
int size = Integer.parseInt(packed.substring(0, delimiterIndex));
int endIndex = delimiterIndex + 1 + size;
strings.add(packed.substring(delimiterIndex + 1, endIndex));
if (endIndex < packed.length()) {
unpack(strings, packed.substring(endIndex));
}
}
代码示例来源:origin: org.eclipse.xtext/util
public static String[] unpack(String packed) {
if (isEmpty(packed)) {
return null;
} else {
List<String> strings = Lists.newArrayList();
unpack(strings, packed);
return strings.toArray(new String[strings.size()]);
}
}
代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.util
public static String[] unpack(String packed) {
if (isEmpty(packed)) {
return null;
} else {
List<String> strings = Lists.newArrayList();
unpack(strings, packed);
return strings.toArray(new String[strings.size()]);
}
}
代码示例来源:origin: org.eclipse.xtext/builder
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public QualifiedName createQualifiedNameFromString(EDataType eDataType, String initialValue) {
return QualifiedName.create(Strings.unpack(initialValue));
}
代码示例来源:origin: org.eclipse.xtext/ui
public String[] getIssueData(IMarker marker) {
return Strings.unpack(marker.getAttribute(Issue.DATA_KEY, null));
}
内容来源于网络,如有侵权,请联系作者删除!