{"text-file",0,0,G_OPTION_ARG_STRING,&this->text_file,"Set input text file-name\n\n If no text is provided, standard input is used for input.\n","filename"},
{"unicodes",'u',0,G_OPTION_ARG_CALLBACK,(gpointer)&parse_unicodes,"Set input Unicode codepoints","list of hex numbers"},
{"text-before",0,0,G_OPTION_ARG_STRING,&this->text_before,"Set text context before each line","string"},
{"text-after",0,0,G_OPTION_ARG_STRING,&this->text_after,"Set text context after each line","string"},
{nullptr}
};
parser->add_group(entries,
"text",
"Text options:",
"Options for the input text",
this);
}
constchar*
text_options_t::get_line(unsignedint*len,inteol)
{
if(text){
if(text)
{
if(!line)
{
line=text;
@ -141,11 +138,14 @@ text_options_t::get_line (unsigned int *len, int eol)
{"text-file",0,0,G_OPTION_ARG_STRING,&this->text_file,"Set input text file-name\n\n If no text is provided, standard input is used for input.\n","filename"},
{"unicodes",'u',0,G_OPTION_ARG_CALLBACK,(gpointer)&parse_unicodes,"Set input Unicode codepoints","list of hex numbers"},
{"text-before",0,0,G_OPTION_ARG_STRING,&this->text_before,"Set text context before each line","string"},
{"text-after",0,0,G_OPTION_ARG_STRING,&this->text_after,"Set text context after each line","string"},