MCPcopy Create free account
hub / github.com/coreutils/coreutils / check_punctuation

Function check_punctuation

src/fmt.c:791–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789/* Set extra fields in word W describing any attached punctuation. */
790
791static void
792check_punctuation (WORD *w)
793{
794 char const *start = w->text;
795 char const *finish = start + (w->length - 1);
796 unsigned char fin = *finish;
797
798 w->paren = isopen (*start);
799 w->punct = !! ispunct (fin);
800 while (start < finish && isclose (*finish))
801 finish--;
802 w->period = isperiod (*finish);
803}
804
805/* Flush part of the paragraph to make room. This function is called on
806 hitting the limit on the number of words or characters. */

Callers 1

get_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected