The following functions determine the word breaks in a string.
Determines the word break points in s, an array of n units, and stores the result at p
[i] = 1
- means that there is a word boundary between s
[i] = 0
- means that s
[i]must not be separated.
is always set to 0. If an application wants to consider a word break to be present at the beginning of the string (before s
) or at the end of the string (after s
-1]), it has to treat these cases explicitly.