List of usage examples for org.apache.lucene.analysis CharacterUtils toUpperCase
public static void toUpperCase(final char[] buffer, final int offset, final int limit)
From source file:io.crate.expression.scalar.string.StringCaseFunction.java
License:Apache License
public static void register(ScalarFunctionModule module) { module.register(new StringCase("upper", (ref, len) -> { CharacterUtils.toUpperCase(ref, 0, len); return ref; }));/* w w w.ja v a2s. c om*/ module.register(new StringCase("lower", (ref, len) -> { CharacterUtils.toLowerCase(ref, 0, len); return ref; })); }