• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/src/

Lines Matching refs:this

16    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
42 call_set_domain (struct default_catalog_reader_ty *this, char *name)
45 (default_catalog_reader_class_ty *) this->methods;
48 methods->set_domain (this, name);
52 call_add_message (struct default_catalog_reader_ty *this,
60 (default_catalog_reader_class_ty *) this->methods;
63 methods->add_message (this, msgctxt,
71 call_frob_new_message (struct default_catalog_reader_ty *this, message_ty *mp,
76 (default_catalog_reader_class_ty *) this->methods;
79 methods->frob_new_message (this, mp, msgid_pos, msgstr_pos);
94 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
97 this->domain = MESSAGE_DOMAIN_DEFAULT;
98 this->comment = NULL;
99 this->comment_dot = NULL;
100 this->filepos_count = 0;
101 this->filepos = NULL;
102 this->is_fuzzy = false;
104 this->is_format[i] = undecided;
105 this->do_wrap = undecided;
112 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
114 /* Do not free this->mdlp and this->mlp. */
115 if (this->handle_comments)
117 if (this->comment != NULL)
118 string_list_free (this->comment);
119 if (this->comment_dot != NULL)
120 string_list_free (this->comment_dot);
122 if (this->handle_filepos_comments)
126 for (j = 0; j < this->filepos_count; ++j)
127 free (this->filepos[j].file_name);
128 if (this->filepos != NULL)
129 free (this->filepos);
137 /* We need to parse comments, because even if this->handle_comments and
138 this->handle_filepos_comments are false, we need to know which messages
152 default_copy_comment_state (default_catalog_reader_ty *this, message_ty *mp)
156 if (this->handle_comments)
158 if (this->comment != NULL)
159 for (j = 0; j < this->comment->nitems; ++j)
160 message_comment_append (mp, this->comment->item[j]);
161 if (this->comment_dot != NULL)
162 for (j = 0; j < this->comment_dot->nitems; ++j)
163 message_comment_dot_append (mp, this->comment_dot->item[j]);
165 if (this->handle_filepos_comments)
167 for (j = 0; j < this->filepos_count; ++j)
171 pp = &this->filepos[j];
175 mp->is_fuzzy = this->is_fuzzy;
177 mp->is_format[i] = this->is_format[i];
178 mp->do_wrap = this->do_wrap;
183 default_reset_comment_state (default_catalog_reader_ty *this)
187 if (this->handle_comments)
189 if (this->comment != NULL)
191 string_list_free (this->comment);
192 this->comment = NULL;
194 if (this->comment_dot != NULL)
196 string_list_free (this->comment_dot);
197 this->comment_dot = NULL;
200 if (this->handle_filepos_comments)
202 for (j = 0; j < this->filepos_count; ++j)
203 free (this->filepos[j].file_name);
204 if (this->filepos != NULL)
205 free (this->filepos);
206 this->filepos_count = 0;
207 this->filepos = NULL;
209 this->is_fuzzy = false;
211 this->is_format[i] = undecided;
212 this->do_wrap = undecided;
220 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
222 call_set_domain (this, name);
227 default_reset_comment_state (this);
244 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
246 call_add_message (this, msgctxt, msgid, msgid_pos, msgid_plural,
252 default_reset_comment_state (this);
259 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
261 if (this->handle_comments)
263 if (this->comment == NULL)
264 this->comment = string_list_alloc ();
265 string_list_append (this->comment, s);
273 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
275 if (this->handle_comments)
277 if (this->comment_dot == NULL)
278 this->comment_dot = string_list_alloc ();
279 string_list_append (this->comment_dot, s);
288 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
290 if (this->handle_filepos_comments)
295 nbytes = (this->filepos_count + 1) * sizeof (this->filepos[0]);
296 this->filepos = xrealloc (this->filepos, nbytes);
297 pp = &this->filepos[this->filepos_count++];
308 default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
310 po_parse_comment_special (s, &this->is_fuzzy, this->is_format,
311 &this->do_wrap);
319 default_set_domain (default_catalog_reader_ty *this, char *name)
321 if (this->allow_domain_directives)
323 this->domain = name;
327 _("this file may not contain domain directives"));
335 default_add_message (default_catalog_reader_ty *this,
349 if (this->mdlp != NULL)
350 /* Select the appropriate sublist of this->mdlp. */
351 this->mlp = msgdomain_list_sublist (this->mdlp, this->domain, true);
353 if (this->allow_duplicates && msgid[0] != '\0')
354 /* Doesn't matter if this message ID has been seen before. */
357 /* See if this message ID has been seen before. */
358 mp = message_list_search (this->mlp, msgctxt, msgid);
362 if (!(this->allow_duplicates_if_same_msgstr
366 /* We give a fatal error about this, regardless whether the
374 _("this is the location of the first definition"));
392 default_copy_comment_state (this, mp);
406 default_copy_comment_state (this, mp);
410 call_frob_new_message (this, mp, msgid_pos, msgstr_pos);
412 message_list_append (this->mlp, mp);