StringUtil - apache/ctakes GitHub Wiki

final public class StringUtil

Some simple String processes are performed so frequently in nlp that it is good to have methods available that are faster than those in the jdk.

  • Author: SPF , chip-nlp
  • Version: %I%
  • Since: 5/16/2017

static public String[] fastSplit( final String line, final char c )

Splits a string using a character. Faster than String.split( regex )

  • Parameters:
    • line full text to split
    • c character at which to split
  • Returns: array of substrings or the original line if there are no characters c
⚠️ **GitHub.com Fallback** ⚠️