logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PS_hyphenate — Hyphenates a word

Author

       This manual page was written by Uwe Steinmann <uwe@steinmann.cx>.

                                                                                                 PS_HYPHENATE(3)

Description

       Hyphenates  the  passed  word.  text  should not contain any non alpha characters. Possible positions for
       breaks are returned in hyphens.

       This function requires the locale category LC_CTYPE to be set propperly. PS_boot()  usually  does  it  by
       using the enviroment variables.

       PS_hyphenate()  evaluates  the  value 'hyphenminchars' and the parameter `hyphendict'. hyphendict must be
       set before calling this function.

Name

       PS_hyphenate — Hyphenates a word

Return Value

       Returns -1 in case of an error, and otherwise 0.

See Also

PS_boot(3), PS_show_boxed(3), locale(1)

Synopsis

       #include <pslib.h>

       int PS_hyphenate(PSDoc *psdoc, const char *text, char **hyphens)

See Also