[ Version ( since = "0.9.11" ) ]
public void clear_contents ()
Clears the buffer contents and segment properties (direction, script, language), and resets the random state to its default value of 1.
Unlike reset, this function preserves the Unicode functions, flags, cluster level, replacement code point, and invisible and not-found glyphs. The message callback and attached user data are also preserved.
| buffer |
An Buffer |