ITK Function Reference

(V10000.1.0.60_20160308.00)
textserver.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
12 /* */
13 
14 #ifndef TEXTSERVER_H
15 #define TEXTSERVER_H
16 
17 #include <base_utils/Mem.h>
18 
19 #include <textsrv/libtextsrv_exports.h>
20 
35 #define TC_TRANSLATIONSTATUS_master 'M'
36 
38 #define TC_TRANSLATIONSTATUS_approved 'A'
39 
41 #define TC_TRANSLATIONSTATUS_pending 'P'
42 
44 #define TC_TRANSLATIONSTATUS_in_review 'R'
45 
47 #define TC_TRANSLATIONSTATUS_invalid 'I'
48 
50 #define TC_TRANSLATIONSTATUS_ghost 'G'
51 
56 typedef void* txt_t;
57 
58 #ifdef __cplusplus
59  extern "C"{
60 #endif
61 
90  extern TEXTSRV_API int TXTSRV_get_substituted_text_resource(
91  const char* key,
92  const char* parameter_1,
93  const char* parameter_2,
94  const char* parameter_3,
95  const char* parameter_4,
96  const char* parameter_5,
97  const char* parameter_6,
98  const char* parameter_7,
99  char** substituted_text_resource
100  );
101 
117  extern TEXTSRV_API int TXTSRV_get_unsubstituted_text_resource(
118  const char* key,
119  char** substituted_text_resource
120  );
121 
122 
127  extern TEXTSRV_API txt_t txt_ctor(
128  const char*
129  );
130 
135  extern TEXTSRV_API void txt_destructor(
136  txt_t ts
137  );
138 
143  extern TEXTSRV_API char* txt_subText(
144  txt_t,
145  const char*,
146  int,
147  const char* s1,
148  const char* s2,
149  const char* s3,
150  const char* s4,
151  const char* s5
152  );
153 
160  extern TEXTSRV_API char* txt_noSubText(
161  txt_t,
162  const char*,
163  int
164  );
165 
166 
171  extern TEXTSRV_API char* TC_text(
172  const char* key
173  );
174 
179  extern TEXTSRV_API char* TC_text_arg(
180  const char * key,
181  const char * arg
182  );
183 
188  extern TEXTSRV_API char* TC_text_required(
189  const char* key
190  );
191 
195  extern TEXTSRV_API char* TC_product_text(
196  const char* key
197  );
198 
203  extern TEXTSRV_API char* TC_unsubst_text(
204  const char* key
205  );
206 
214  extern TEXTSRV_API char* TC_hier_text(
215  const char* hierarchy_name,
216  const char* key
217  );
218 
223  extern TEXTSRV_API int TC_text_get_locales_check_message (
224  char** warning_message
225  );
226 
233  extern TEXTSRV_API int TC_text_get_current_W3C_locale (
234  char** current_w3_locale
235  );
236 
242  extern TEXTSRV_API int TC_text_get_current_Java_locale (
243  char** current_java_locale
244  );
245 
257  int* nb_of_languages,
258  char*** language_code_list,
259  char*** language_name_list
260  );
261 
285  char** language_code,
286  char** language_name
287  );
288 
289 
299  extern TEXTSRV_API int TXTSRV_get_search_language (
300  char** language_code,
301  char** language_name
302  );
303 
304 
309  extern TEXTSRV_API int TXTSRV_get_supported_languages_list (
310  int* nb_of_languages,
311  char*** language_code_list,
312  char*** language_name_list
313  );
314 
320  extern TEXTSRV_API int TXTSRV_get_localized_languages_list (
321  int* nb_of_languages,
322  char*** language_code_list,
323  char*** language_name_list
324  );
325 
329  extern TEXTSRV_API int TXTSRV_getTranslationStatusNameAndDescription (
330  char translation_status_code,
331  char** translation_status_name,
332  char** translation_status_description
333  );
334 
340  int* number_of_statuses,
341  char*** translation_status_names,
342  char*** translation_status_descriptions
343  );
344 
349  int* number_of_statuses,
350  char** translation_status_codes,
351  char*** translation_status_names,
352  char*** translation_status_descriptions
353  );
354 
371  extern TEXTSRV_API int TXTSRV_convertStatusFromStringToCode (
372  char* translation_status_name,
373  char* translation_status_code
374  );
375 
376 
380  extern TEXTSRV_API int TXTSRV_convertStatusFromCodeToString(
381  char translation_status_code,
382  char** translation_status_name
383  );
384 
389  extern TEXTSRV_API int TXTSRV_get_site_master_language (
390  char** language_code,
391  char** language_name
392  );
393 
394 #ifdef __cplusplus
395 }
396 #endif
397 
398 
408 #define TC_free_text MEM_free
409 
413 #define txt_text(ts,keyStr) txt_noSubText(ts, keyStr, 0)
414 
418 #define txt_texts(ts,keyStr,subStr) txt_subText(ts, keyStr, 0, subStr, NULL, NULL, NULL, NULL)
419 
422 #include <textsrv/libtextsrv_undef.h>
423 #endif