Transform the int code point elements to a new string using the specified function {@code function}.

@deprecated since 7.0. Use {@link #collectCodePoint(String, CodePointFunction)} instead.
541024
@Deprecated
    public static String collect(String string, CodePointFunction function)
    {
        return StringIterate.collectCodePoint(string, function);
    }
863154
function toCodePoint(input, separator = "-") {
  const codePoints = [];
  for (let codePoint of input) {
    codePoints.push(codePoint.codePointAt(0).toString(16));
  }
  return codePoints.join(separator);
}
1085218
public static <T> T convert(Callable<T> callable,
                                Function<Throwable, RuntimeException> function) {
        try {
            return callable.call();
        } catch (Throwable e) {
            throw function.apply(e);
        }
    }
925705
public static int countCodePoint(String string, CodePointPredicate predicate)
    {
        int count = 0;
        int size = string.length();
        for (int i = 0; i < size; )
        {
            int codePoint = string.codePointAt(i);
            if (predicate.accept(codePoint))
            {
                count++;
            }
            i += Character.charCount(codePoint);
        }
        return count;
    }
450835
function getCodePoints(str) {
  const codePoints = [];
  for (let pos = 0; pos < str.length; pos += getUTF16Length(str, pos)) {
    codePoints.push(str.codePointAt(pos));
  }
  return codePoints;
}
976672
public void encodeString(final String s) throws IOException {
		final int lenChars = s.length();
		final int lenCharacters = s.codePointCount(0, lenChars);
		encodeUnsignedInteger(lenCharacters);
		encodeStringOnly(s);
	}
1139182
private static FunctionInputDef asFunctionInputDef( String functionName, JsonObject json)
    {
    FunctionInputDef functionInputDef;

    try
      {
      functionInputDef = new FunctionInputDef( validIdentifier( functionName));
      
      // Get function annotations
      Optional.ofNullable( json.getJsonObject( HAS_KEY))
        .ifPresent( has -> has.keySet().stream().forEach( key -> functionInputDef.setAnnotation( key, has.getString( key))));

      // Get function variables.
      json.keySet().stream()
        .filter( key -> !key.equals( HAS_KEY))
        .forEach( varType -> getVarDefs( varType, json.getJsonObject( varType)).forEach( varDef -> functionInputDef.addVarDef( varDef)));

      if( functionInputDef.getVarTypes().length == 0)
        {
        throw new SystemInputException( String.format( "No variables defined for function=%s", functionName));
        }

      SystemInputs.getPropertiesUndefined( functionInputDef)
        .entrySet().stream()
        .findFirst()
        .ifPresent( undefined -> {
          String property = undefined.getKey();
          IConditional ref = undefined.getValue().stream().findFirst().orElse( null);
          throw new SystemInputException
            ( String.format
              ( "Property=%s is undefined, but referenced by %s",
                property,
                SystemInputs.getReferenceName( ref)));
          });

      }
    catch( SystemInputException e)
      {
      throw new SystemInputException( String.format( "Error defining function=%s", functionName), e);
      }
    
    return functionInputDef;
    }
261174
@Override
    public Object visitFunctionCall(ExcellentParser.FunctionCallContext ctx) {
        String funcName = ctx.fnname().getText();
        List<Object> parameters;
        if (ctx.parameters() != null) {
            parameters = (List<Object>) visit(ctx.parameters());
        } else {
            parameters = Collections.emptyList();
        }
        return m_functions.invokeFunction(m_evalContext, funcName, parameters);
    }
94100
@Deprecated
    public static int count(String string, CodePointPredicate predicate)
    {
        return StringIterate.countCodePoint(string, predicate);
    }
1311848
public static String pointToString (int x, int y) {
        StringBuilder buf = new StringBuilder();
        if (x >= 0) buf.append("+");
        buf.append(x);
        if (y >= 0) buf.append("+");
        buf.append(y);
        return buf.toString();
    }
240248
public static int occurrencesOfCodePoint(String string, final int value)
    {
        return StringIterate.countCodePoint(string, new CodePointPredicate()
        {
            public boolean accept(int codePoint)
            {
                return value == codePoint;
            }
        });
    }
876461
@Deprecated
    public static String reject(String string, CodePointPredicate predicate)
    {
        return StringIterate.rejectCodePoint(string, predicate);
    }
345937
public static <K, NEW, OLD> Map<K, NEW> convert(Map<K, OLD> map, Function<OLD, NEW> function) {
        Map<K, NEW> newMap = new HashMap<>();
        map.forEach((k, v) -> newMap.put(k, function.apply(v)));
        return newMap;
    }
1277067
@Override
    public String visit(final JmesPathFunction function,
                        final Void aVoid) throws InvalidTypeException {
        final String prefix = "new " + function.getClass()
                .getSimpleName() + "( ";
        return function.getExpressions().stream()
                .map(a -> a.accept(this, aVoid))
                .collect(Collectors.joining(",", prefix, ")"));
    }
1304337
public static String collectChar(String string, CharToCharFunction function)
    {
        int size = string.length();
        StringBuilder builder = new StringBuilder(size);
        for (int i = 0; i < size; i++)
        {
            builder.append(function.valueOf(string.charAt(i)));
        }
        return builder.toString();
    }
681746
@Override
   public String convertToFunction(final String wkt, final String srid, final Database database) {
      final String oracleWkt = OracleSpatialUtils.getOracleWkt(wkt);
      final String oracleSrid = OracleSpatialUtils.getOracleSrid(srid, database);
      return super.convertToFunction(oracleWkt, oracleSrid, database);
   }
597593
@Deprecated
  public static <K, V> Function<Map.Entry<K, V>, V> getEntryValue() {
    return entryValueFunction();
  }