Unicode.String.Break.Word (Unicode String v2.4.1)

Copy Markdown View Source

Deprecated. Use Unicode.String.Dfa.Word instead. This module is removed in 2.5.0.

This module implemented the annex by hand. Segmentation is now driven by the state machine tables published in PRI #555, and this module delegates to the engine generated from them. Its behaviour is unchanged; only the module name has moved.

Neither module is the supported interface. Unicode.String is the API to prefer, and it is unaffected by this change.

Summary

Functions

Returns true when a boundary falls between the two strings.

next(string) deprecated

Returns {segment, rest}, or nil when string is empty.

split(string) deprecated

Splits string into segments.

Functions

break?(string_before, string_after)

This function is deprecated. Use Unicode.String.Dfa.Word.break?/2 instead. Removed in 2.5.0.

Returns true when a boundary falls between the two strings.

next(string)

This function is deprecated. Use Unicode.String.Dfa.Word.next/1 instead. Removed in 2.5.0.

Returns {segment, rest}, or nil when string is empty.

split(string)

This function is deprecated. Use Unicode.String.Dfa.Word.split/1 instead. Removed in 2.5.0.

Splits string into segments.