IsWordChar returns whether or not a rune is a 'word character' Word characters are defined as numbers, letters or sub-word delimiters
(r rune)
| 264 | // IsWordChar returns whether or not a rune is a 'word character' |
| 265 | // Word characters are defined as numbers, letters or sub-word delimiters |
| 266 | func IsWordChar(r rune) bool { |
| 267 | return IsAlphanumeric(r) || IsSubwordDelimiter(r) |
| 268 | } |
| 269 | |
| 270 | // IsNonWordChar returns whether or not a rune is not a 'word character' |
| 271 | // Non word characters are defined as all characters not being numbers, letters or sub-word delimiters |
no test coverage detected