apoc.text

Qualified Name Type

apoc.text.phoneticDelta(text1 String, text2 String) - returns the US_ENGLISH soundex character difference between the two given strings.

Procedure

apoc.text.base64Decode(text String) - decodes the given Base64 encoded string.

Function

apoc.text.base64Encode(text String) - encodes the given string with Base64.

Function

apoc.text.base64UrlDecode(url String) - decodes the given Base64 encoded URL.

Function

apoc.text.base64UrlEncode(url String) - encodes the given URL with Base64.

Function

apoc.text.byteCount(text String, charset String) - returns the size of the given string in bytes.

Function

apoc.text.bytes(text String, charset String) - returns the give string as bytes.

Function

apoc.text.camelCase(text String) - converts the given string to camel case.

Function

apoc.text.capitalize(text String) - capitalizes the first letter of the given string.

Function

apoc.text.capitalizeAll(text String) - capitalizes the first letter of every word in the given string.

Function

apoc.text.charAt(text String, index Integer) - returns the long value of the character at the given index.

Function

apoc.text.clean(text String) - strips the given string of everything except alpha numeric characters and converts it to lower case.

Function

apoc.text.code(codepoint Long) - converts the long value into a string.

Function

apoc.text.compareCleaned(text1 String, text2 String) - compares two given strings stripped of everything except alpha numeric characters converted to lower case.

Function

apoc.text.decapitalize(text String) - turns the first letter of the given string from upper case to lower case.

Function

apoc.text.decapitalizeAll(text String) - turns the first letter of every word in the given string to lower case.

Function

apoc.text.distance(text1 String, text2 String) - compares the two given strings using the Levenshtein distance algorithm.

Function

apoc.text.doubleMetaphone(value String) - returns the double metaphone phonetic encoding of all words in the given string value.

Function

apoc.text.format(text String, params [Any], language String) - formats the given string with the given parameters.

Function

apoc.text.fuzzyMatch(text1 String, text2 String) - performs a fuzzy match search of the two given strings.

Function

apoc.text.hammingDistance(text1 String, text2 String) - compares the two given strings using the Hamming distance algorithm.

Function

apoc.text.hexCharAt(text String, index Integer) - returns the hexadecimal value of the given string at the given index.

Function

apoc.text.hexValue(value Integer) - returns the hexadecimal value of the given value.

Function

apoc.text.indexOf(text String, lookup String, from Integer, to Integer) - returns the first occurrence of the lookup string in the given string, or -1 if not found.

Function

apoc.text.indexesOf(text String, lookup String, from Integer, to Integer) - returns all occurences of the lookup string in the given string, or an empty list if not found.

Function

apoc.text.jaroWinklerDistance(text1 String, text2 String) - compares the two given strings using the Jaro-Winkler distance algorithm.

Function

apoc.text.join(texts [String], delimiter String) - joins the given strings using the given delimiter.

Function

apoc.text.levenshteinDistance(text1 String, text2 String) - compares the given strings using the Levenshtein distance algorithm.

Function

apoc.text.levenshteinSimilarity(text1 String, text2 String) - returns the similarity (a value within 0 and 1) between the two given strings based on the Levenshtein distance algorithm.

Function

apoc.text.lpad(text String, count Integer, delimiter String) - left pads the given string by the given width.

Function

apoc.text.phonetic(text String) - returns the US_ENGLISH phonetic soundex encoding of all words of the string.

Function

apoc.text.random(length Integer, valid String) - generates a random string to the given length using a length parameter and an optional string of valid characters.

Function

apoc.text.regexGroups(text String, regex String) - returns all groups matching the given regular expression in the given text.

Function

apoc.text.regreplace(text String, regex String, replacement String) - finds and replaces all matches found by the given regular expression with the given replacement.

Function

apoc.text.repeat(item String, count Integer) - returns the result of the given item multiplied by the given count.

Function

apoc.text.replace(text String, regex String, replacement String) - finds and replaces all matches found by the given regular expression with the given replacement.

Function

apoc.text.rpad(text String, count Integer, delimiter String) - right pads the given string by the given width.

Function

apoc.text.slug(text String, delimiter String) - replaces the whitespace in the given string with the given delimiter.

Function

apoc.text.snakeCase(text String) - converts the given string to snake case.

Function

apoc.text.sorensenDiceSimilarityWithLanguage(text1 String, text2 String, languageTag String) - compares the two given strings using the Sørensen–Dice coefficient formula, with the provided IETF language tag.

Function

apoc.text.split(text String, regex String, limit Integer) - splits the given string using a given regular expression as a separator.

Function

apoc.text.swapCase(text String) - swaps the cases in the given string.

Function

apoc.text.toCypher(value Any, config Map<String, Any>) - converts the given value to a Cypher property string.

Function

apoc.text.toUpperCase(text String) - converts the given string to upper case.

Function

apoc.text.upperCamelCase(text String) - converts the given string to upper camel case.

Function

apoc.text.urldecode(text String) - decodes the given URL encoded string.

Function

apoc.text.urlencode(text String) - encodes the given URL string.

Function