Home
last modified time | relevance | path

Searched refs:msgstr_len (Results 1 – 25 of 35) sorted by relevance

12

/third_party/gettext/gettext-tools/src/
Dpo-gram-gen.y52 char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, in do_callback_message() argument
63 msgstr, msgstr_len, msgstr_pos, in do_callback_message()
184 $4.rhs.msgstr, $4.rhs.msgstr_len, &$4.pos,
335 $$.rhs.msgstr = XNMALLOC ($1.rhs.msgstr_len + $2.rhs.msgstr_len, char);
336 memcpy ($$.rhs.msgstr, $1.rhs.msgstr, $1.rhs.msgstr_len);
337 memcpy ($$.rhs.msgstr + $1.rhs.msgstr_len, $2.rhs.msgstr, $2.rhs.msgstr_len);
338 $$.rhs.msgstr_len = $1.rhs.msgstr_len + $2.rhs.msgstr_len;
362 $$.rhs.msgstr_len = strlen ($$.rhs.msgstr) + 1;
Dmsgl-english.c46 if (mp->msgstr_len == 1 && mp->msgstr[0] == '\0') in msgdomain_list_english()
49 mp->msgstr_len = strlen (mp->msgid) + 1; in msgdomain_list_english()
54 if (mp->msgstr_len == 2 in msgdomain_list_english()
63 mp->msgstr_len = len0 + len1; in msgdomain_list_english()
Dformat.c73 const char *msgstr, size_t msgstr_len, in check_msgid_msgstr_format_i() argument
104 bool has_plural_translations = (strlen (msgstr) + 1 < msgstr_len); in check_msgid_msgstr_format_i()
105 const char *p_end = msgstr + msgstr_len; in check_msgid_msgstr_format_i()
175 const char *msgstr, size_t msgstr_len, in check_msgid_msgstr_format() argument
193 msgstr, msgstr_len, i, in check_msgid_msgstr_format()
Dread-catalog.c56 char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, in call_add_message() argument
66 msgstr, msgstr_len, msgstr_pos, in call_add_message()
240 char *msgstr, size_t msgstr_len, in default_directive_message() argument
249 msgstr, msgstr_len, msgstr_pos, in default_directive_message()
338 char *msgstr, size_t msgstr_len, in default_add_message() argument
361 && msgstr_len == mp->msgstr_len in default_add_message()
362 && memcmp (msgstr, mp->msgstr, msgstr_len) == 0)) in default_add_message()
398 mp = message_alloc (msgctxt, msgid, msgid_plural, msgstr, msgstr_len, in default_add_message()
Dmsgl-iconv.c153 if (!(mp->msgstr_len > 0 && mp->msgstr[mp->msgstr_len - 1] == '\0')) in convert_msgstr()
156 if (xmem_cd_iconveh (mp->msgstr, mp->msgstr_len, cd, iconveh_error, NULL, in convert_msgstr()
167 for (p = mp->msgstr, pend = p + mp->msgstr_len, nulcount1 = 0; in convert_msgstr()
177 mp->msgstr_len = resultlen; in convert_msgstr()
274 mlp->item[j]->msgstr_len = len1 + len2 + len3 + 1; in iconv_message_list_internal()
443 if (!(mp->msgstr_len > 0 && mp->msgstr[mp->msgstr_len - 1] == '\0')) in iconvable_msgstr()
446 if (xmem_cd_iconveh (mp->msgstr, mp->msgstr_len, cd, iconveh_error, NULL, in iconvable_msgstr()
460 for (p = mp->msgstr, pend = p + mp->msgstr_len, nulcount1 = 0; in iconvable_msgstr()
Dmsgl-cat.c533 tmp->msgstr_len = mp->msgstr_len; in catenate_msgdomain_list()
563 tmp->msgstr_len = mp->msgstr_len; in catenate_msgdomain_list()
619 tmp->alternative[i].msgstr_len = mp->msgstr_len; in catenate_msgdomain_list()
621 tmp->alternative[i].msgstr + tmp->alternative[i].msgstr_len; in catenate_msgdomain_list()
686 if (!(tmp->alternative[i].msgstr_len == first->msgstr_len in catenate_msgdomain_list()
688 first->msgstr_len) == 0)) in catenate_msgdomain_list()
695 tmp->msgstr_len = first->msgstr_len; in catenate_msgdomain_list()
712 len += tmp->alternative[i].msgstr_len; in catenate_msgdomain_list()
757 tmp->msgstr_len = np - new_msgstr; in catenate_msgdomain_list()
Dread-catalog.h61 char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos,
136 char *msgstr, size_t msgstr_len,
155 char *msgstr, size_t msgstr_len,
Dread-mo.c411 size_t msgstr_len; in read_mo_file() local
431 &msgstr_len); in read_mo_file()
438 msgstr, msgstr_len, in read_mo_file()
467 size_t msgstr_len; in read_mo_file() local
489 msgstr = get_sysdep_string (&bf, offset, &header, &msgstr_len); in read_mo_file()
496 msgstr, msgstr_len, in read_mo_file()
529 str_end = msgstr + msgstr_len; in read_mo_file()
Dmsgl-equal.c153 ? !msgstr_equal_ignoring_potcdate (mp1->msgstr, mp1->msgstr_len, in message_equal()
154 mp2->msgstr, mp2->msgstr_len) in message_equal()
155 : !msgstr_equal (mp1->msgstr, mp1->msgstr_len, in message_equal()
156 mp2->msgstr, mp2->msgstr_len)) in message_equal()
Dx-po.c58 char *msgstr, size_t msgstr_len, in extract_add_message() argument
113 msgstr, msgstr_len, msgstr_pos, in extract_add_message()
200 mp->msgstr_len = len1 + len2 + len3 + 1; in extract()
Dread-catalog-abstract.h82 char *msgstr, size_t msgstr_len,
172 char *msgstr, size_t msgstr_len,
Dmsgmerge.c968 size_t msgstr_len; in message_merge() local
1287 msgstr_len = strlen (cp) + 1; in message_merge()
1296 msgstr_len = def->msgstr_len; in message_merge()
1314 msgstr, msgstr_len, &def->pos); in message_merge()
1358 msgstr, msgstr_len, i, ref->range, in message_merge()
1617 for (p = mp->msgstr, pend = p + mp->msgstr_len; p < pend; p++) in match_domain()
1628 if (nplurals > mp->msgstr_len) in match_domain()
1630 mp->msgstr_len = nplurals; in match_domain()
1689 new_msgstr_len = nplurals * mp->msgstr_len; in match_domain()
1693 memcpy (p, mp->msgstr, mp->msgstr_len); in match_domain()
[all …]
Dmessage.h147 size_t msgstr_len; member
170 size_t msgstr_len; member
233 const char *msgstr, size_t msgstr_len,
Dformat.h155 const char *msgstr, size_t msgstr_len,
166 const char *msgstr, size_t msgstr_len,
Dmsgexec.c452 size_t msgstr_len = mp->msgstr_len; in process_message() local
457 for (p = msgstr, k = 0; p < msgstr + msgstr_len; k++) in process_message()
Dxg-message.c586 msgstr = XNMALLOC (mp->msgstr_len + msgstr1_len, char); in remember_a_message_plural()
587 memcpy (msgstr, mp->msgstr, mp->msgstr_len); in remember_a_message_plural()
588 memcpy (msgstr + mp->msgstr_len, msgstr1, msgstr1_len); in remember_a_message_plural()
590 mp->msgstr_len = mp->msgstr_len + msgstr1_len; in remember_a_message_plural()
Dread-catalog-abstract.c99 char *msgstr, size_t msgstr_len, in call_directive_message() argument
109 msgstr, msgstr_len, msgstr_pos, in call_directive_message()
212 char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, in po_callback_message() argument
221 msgstr, msgstr_len, msgstr_pos, in po_callback_message()
Dmsgl-header.c169 mp->msgstr_len = strlen (new_header) + 1; in msgdomain_list_set_header_field()
221 mp->msgstr_len = strlen (new_header) + 1; in message_list_delete_header_field()
Dmsggrep.c711 size_t msgstr_len; in is_message_selected_no_invert() local
733 msgstr_len = mp->msgstr_len; in is_message_selected_no_invert()
735 for (p = msgstr; p < msgstr + msgstr_len; ) in is_message_selected_no_invert()
Dmsgfilter.c678 size_t msgstr_len = mp->msgstr_len; in process_message() local
732 p < msgstr + msgstr_len; in process_message()
778 mp->msgstr_len = total_len; in process_message()
Dmsgl-check.c329 for (p = mp->msgstr, p_end = p + mp->msgstr_len; in check_plural()
583 const char *msgstr, size_t msgstr_len, in check_pair() argument
619 for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++) in check_pair()
660 for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++) in check_pair()
703 check_msgid_msgstr_format (msgid, msgid_plural, msgstr, msgstr_len, in check_pair()
866 mp->msgstr, mp->msgstr_len, in check_message()
Dpo-lex.h94 size_t msgstr_len; member
Dmessage.c125 const char *msgstr, size_t msgstr_len, in message_alloc() argument
136 mp->msgstr_len = msgstr_len; in message_alloc()
238 mp->msgstr, mp->msgstr_len, &mp->pos); in message_copy()
713 int weight = (mp->msgstr_len == 1 && mp->msgstr[0] == '\0' ? 1 : 2); in message_list_list_search()
Dwrite-qt.c420 size_t msgstr_len; in write_qm() local
422 conv_to_utf16 (mp->msgstr, &msgstr_len); in write_qm()
433 append_unicode_string (&messages_pool, msgstr_as_utf16, msgstr_len); in write_qm()
/third_party/gettext/gettext-tools/libgettextpo/
Dgettext-po.c641 mp->msgstr_len = strlen (mp->msgstr) + 1; in po_message_set_msgstr()
659 const char *p_end = mp->msgstr + mp->msgstr_len; in po_message_msgstr_plural()
686 char *p_end = (char *) mp->msgstr + mp->msgstr_len; in po_message_set_msgstr_plural()
704 size_t new_msgstr_len = mp->msgstr_len + index + strlen (msgstr) + 1; in po_message_set_msgstr_plural()
708 p = (char *) mp->msgstr + mp->msgstr_len; in po_message_set_msgstr_plural()
712 mp->msgstr_len = new_msgstr_len; in po_message_set_msgstr_plural()
726 mp->msgstr_len = p - mp->msgstr; in po_message_set_msgstr_plural()
739 size_t new_msgstr_len = mp->msgstr_len - i2before + i2after; in po_message_set_msgstr_plural()
744 mp->msgstr_len - i2before); in po_message_set_msgstr_plural()
746 mp->msgstr_len = new_msgstr_len; in po_message_set_msgstr_plural()
[all …]

12