Internationalization and localization tools


Character Manipulation Function

size_t getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream);

Internationalization (I18n) Function Overview

The getdelim function is like getline except that the character which tells it to stop reading is not necessarily newline. The argument delimiter specifies the delimiter character; getdelim keeps reading until it sees that character (or end of file).

I18n Issues

getdelim works with UTF-8 multibyte data; there is no wide-character version of the function. On ANSI UTF-16 platforms, use a conversion function to convert the return from getdelim to a wide-character string.

See Character I/O for a discussion on non-ASCII character input/output in an internationalized application.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Character Manipulation Functions

 

Lingoport internationalization and localization services and software