org.eclipse.xtext.util.Strings.unpack()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.eclipse.xtext.util.Strings.unpack()方法的一些代码示例,展示了Strings.unpack()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Strings.unpack()方法的具体详情如下:
包路径:org.eclipse.xtext.util.Strings
类名称:Strings
方法名:unpack

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));
}

相关文章