Unicode.String.Break.Sentence (Unicode String v2.4.0)

Copy Markdown View Source

Deprecated. Use Unicode.String.Dfa.Sentence instead.

This module implemented UAX #29 sentence breaking 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 sentence boundary falls between the two strings.

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

Splits string into sentences under locale.

Functions

break?(string_before, string_after, locale, suppressions)

This function is deprecated. Use Unicode.String.Dfa.Sentence.break?/4 instead.

Returns true when a sentence boundary falls between the two strings.

next(string, locale, suppressions)

This function is deprecated. Use Unicode.String.Dfa.Sentence.next/3 instead.

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

split(string, locale, suppressions)

This function is deprecated. Use Unicode.String.Dfa.Sentence.split/3 instead.

Splits string into sentences under locale.