summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-05-07 18:48:25 +0900
committerDaiki Ueno <ueno@gnu.org>2014-05-09 17:32:09 +0900
commit5839a8821d825fa6c00baddeeca9a1544f925689 (patch)
tree1258335bb537eeb8230153b211afaa9caa46ea89 /gettext-tools/tests
parent014af300f8da693fa15361c9ae310b45fc7c16b2 (diff)
downloadexternal_gettext-5839a8821d825fa6c00baddeeca9a1544f925689.zip
external_gettext-5839a8821d825fa6c00baddeeca9a1544f925689.tar.gz
external_gettext-5839a8821d825fa6c00baddeeca9a1544f925689.tar.bz2
xgettext: Provide a way to interpret string literals lazily
* xgettext.c (extract_ty): New field 'literalstring_parser'. (current_literalstring_parser): New variable. (extract_from_file): Set 'current_literalstring_parser'. (savable_comment_convert_encoding): New function. (arglist_parser_remember_literal): New function. (arglist_parser_remember): Call 'arglist_parser_remember_literal'. (arglist_parser_done): Call literalstring_parser on msgctxt, msgid, and msgid_plural before calling 'remember_a_message'; convert encoding of msgid_comment. * x-*.h: Register 'literalstring_parser' through SCANNER_*. * xgettext.h (enum literalstring_escape_type): New enum. (struct literalstring_parser): New struct. (struct partial_call): New fields 'msgctxt_escape', 'msgid_escape', and 'msgid_plural_escape'. (arglist_parser_remember_literal): New function declaration. (savable_comment_convert_encoding): New function declaration.
Diffstat (limited to 'gettext-tools/tests')
0 files changed, 0 insertions, 0 deletions