Documentation ¶
Overview ¶
Package zerowidth implements functions to remove zero-width characters from strings.
Index ¶
Constants ¶
View Source
const ( // ZWSP represents zero-width space. ZWSP = '\u200B' // ZWNBSP represents zero-width no-break space. ZWNBSP = '\uFEFF' // ZWJ represents zero-width joiner. ZWJ = '\u200D' // ZWNJ represents zero-width non-joiner. ZWNJ = '\u200C' )
Variables ¶
This section is empty.
Functions ¶
func HasZeroWidthCharacters ¶
HasZeroWidthCharacters reports whether string s contains zero-width characters.
func RemoveZeroWidthCharacters ¶
RemoveZeroWidthCharacters removes all zero-width characters from string s.
func RemoveZeroWidthJoiner ¶
RemoveZeroWidthJoiner removes zero-width joiner characters from string s.
func RemoveZeroWidthNoBreakSpace ¶
RemoveZeroWidthNoBreakSpace removes zero-width no-break space characters from string s.
func RemoveZeroWidthNonJoiner ¶
RemoveZeroWidthNonJoiner removes zero-width non-joiner characters from string s.
func RemoveZeroWidthSpace ¶
RemoveZeroWidthSpace removes zero-width space characters from string s.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.