OpenCoverage

propername.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/propername.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9static -
10 _Bool-
11-
12mbsstr_trimmed_wordbounded (const char *string, const char *sub)-
13{-
14 char *tsub = trim2(sub, 2);-
15 -
16 _Bool -
17 found = -
18 0-
19 ;-
20-
21 for (; *string != '\0';)-
22 {0
23 const char *tsub_in_string = mbsstr (string, tsub);-
24 if (tsub_in_string == -
25 ((void *)0)
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
26 )
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
27 break;-
28 else
never executed: se
0
29 {-
30 if (-
31 (__ctype_get_mb_cur_max ()) -
32 > 1)
> 1) {Description
TRUEnever evaluated
FALSEnever evaluated
0
33 {
> 1) {Description
TRUEnever evaluated
FALSEnever evaluated
0
34 mbui_iterator_t string_iter;-
35 -
36 _Bool -
37 word_boundary_before;-
38 -
39 _Bool -
40 word_boundary_after;-
41-
42 ((string_iter).cur.ptr = (string), (string_iter).in_shift = -
43 0-
44 , memset (&(string_iter).state, '\0', sizeof (mbstate_t)), (string_iter).next_done = -
45 0-
46 );-
47 word_boundary_before = -
48 1-
49 ;-
50 if ((string_iter).cur.ptr < tsub_in_string)-
51 {0
52 mbchar_t last_char_before_tsub;-
53 do-
54 {-
55 if (!(mbuiter_multi_next (&(string_iter)), !(((string_iter).cur).wc_valid && ((string_iter).cur).wc == 0)))-
56 abort ();0
57 last_char_b
never executed: st_char_b
efore_tsub = (string_iter).cur;
0
58 ((string_iter).cur.ptr += (string_iter).cur.bytes, (string_iter).next_done = -
59 0-
60 );-
61 }-
62 whi
never executed: i
le
((string_iter).cur.ptr < tsub_in_string);
0
63 if (((last_char_before_tsub).wc_valid && iswa
ast_char_befor..._valid && iswaDescription
TRUEnever evaluated
FALSEnever evaluated
lnum ((last_char_before_tsub).wc)))
0
64 word_boundary_before =
d_boundary_before =Description
TRUEnever evaluated
FALSEnever evaluated
0
65 0
never executed: 0 ; }
0
66 ;
never executed: 0 ; }
0
67 }
never executed: 0 ; }
0
680
69 ((string_iter).cur.ptr = (tsub_in_string), (string_iter).in_shift = -
70 0-
71 , memset (&(string_iter).state, '\0', sizeof (mbstate_t)), (string_iter).next_done = -
72 0-
73 );-
74 {-
75 mbui_iterator_t tsub_iter;-
76-
77 for (((tsub_iter).cur.ptr = (tsub), (tsub_iter).in_shift = -
78 0-
79 , memset (&(tsub_iter).state, '\0', sizeof (mbstate_t)), (tsub_iter).next_done = -
80 0-
81 );-
82 (mbuiter_multi_next (&(tsub_iter)), !(((tsub_iter).cur).wc_valid && ((tsub_iter).cur).wc == 0));-
83 ((tsub_iter).cur.ptr += (tsub_iter).cur.bytes, (tsub_iter).next_
r.bytes, (tsub_iter).next_Description
TRUEnever evaluated
FALSEnever evaluated
done =
=Description
TRUEnever evaluated
FALSEnever evaluated
0
84 0-
85 ))-
86 {-
87 if (!(mbuiter_multi_next (&(string_iter)), !(((string_iter).cur).wc_valid && ((string_iter).cur).wc == 0)))-
88 abort ();0
89 ((string_it
never executed: string_it
er).cur.ptr += (string_iter).cur.bytes, (string_iter).next_done =
0
90 0-
91 );-
92 }-
93 }0
94 word_boundary_after = -
95 1-
96 ;-
97 if ((mbuiter_multi_next (&(string_iter)), !(((string_iter).cur).wc_valid && ((string_iter).cur).wc == 0)))-
98 {0
99 mbchar_t first_char_after_tsub = (string_iter).cur;-
100 if (((first_char_after_tsub).wc_valid && iswalnum ((first_char_after_tsub).wc)))-
101 word_boundary_after =
d_boundary_after =Description
TRUEnever evaluated
FALSEnever evaluated
0
102 0
never executed: 0 ; }
0
103 ;
never executed: 0 ; }
0
104 }
never executed: 0 ; }
0
1050
106 if (word_boundary_before && word_boundary_after)-
107 {0
108 found = -
109 1-
110 ;-
111 break;-
112 }0
113-
114 ((string_iter).cur.ptr = (tsub_in_string), (string_iter).in_shift = -
115 0-
116 , memset (&(string_iter).state, '\0', sizeof (mbstate_t)), (string_iter).next_done = -
117 0-
118 );-
119 if (!(mbuiter_multi_next (&(string_iter)), !(((string_iter).cur).wc_valid && ((string_iter).cur).wc == 0)))-
120 break;0
121 string =
never executed: ring =
tsub_in_string + (((string_iter).cur).bytes);
0
122 }-
123 els
never executed: s
e
0
124 {-
125 -
126 _Bool -
127 word_boundary_before;-
128 const char *p;-
129 -
130 _Bool -
131 word_boundary_after;-
132-
133 word_boundary_before = -
134 1-
135 ;-
136 if (string < tsub_in_string)-
137 if (
(Description
TRUEnever evaluated
FALSEnever evaluated
0
138 ((*__ctype_b_loc ())[(int) ((-
139 (
(unsigned char...int) _ISalnum)Description
TRUEnever evaluated
FALSEnever evaluated
unsigned char) tsub_in_string[-1]
(unsigned char...int) _ISalnum)Description
TRUEnever evaluated
FALSEnever evaluated
0
140 ))] & (unsigned short int) _ISalnum)
(unsigned char...int) _ISalnum)Description
TRUEnever evaluated
FALSEnever evaluated
0
141
(unsigned char...int) _ISalnum)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
142 word_boundary_before = -
143 0
never executed: 0 ;
0
144 ;
never executed: 0 ;
0
1450
146 p = tsub_in_string + strlen (tsub);-
147 word_boundary_after = -
148 1-
149 ;-
150 if (*p != '\0')-
151 if (
(Description
TRUEnever evaluated
FALSEnever evaluated
0
152 ((*__ctype_b_loc ())[(int) ((-
153 (
(unsigned char...t) _ISalnum) )Description
TRUEnever evaluated
FALSEnever evaluated
unsigned char) *p
(unsigned char...t) _ISalnum) )Description
TRUEnever evaluated
FALSEnever evaluated
0
154 ))] & (unsigned short int) _ISalnum)
(unsigned char...t) _ISalnum) )Description
TRUEnever evaluated
FALSEnever evaluated
0
155 )
(unsigned char...t) _ISalnum) )Description
TRUEnever evaluated
FALSEnever evaluated
0
156 word_boundary_after = -
157 0
never executed: 0 ;
0
158 ;
never executed: 0 ;
0
1590
160 if (word_boundary_before && word_boundary_after)-
161 {0
162 found = -
163 1-
164 ;-
165 break;-
166 }0
167-
168 if (*tsub_in_string == '\0')-
169 break;
eak;Description
TRUEnever evaluated
FALSEnever evaluated
0
170 string =
never executed: ring =
tsub_in_string + 1;
0
171 }-
172 }0
173 }-
174 free (tsub);-
175 return found;-
176}0
177-
178-
179-
180const char *-
181proper_name (const char *name)-
182{-
183-
184 const char *translation = -
185 dcgettext (((void *)0), -
186 name-
187 , 5)-
188 ;-
189-
190 if (translation != name)-
191 {0
192-
193 if (mbsstr_trimmed_wordbounded (translation, name))-
194 return
turn translation;Description
TRUEnever evaluated
FALSEnever evaluated
translation;
turn translation;Description
TRUEnever evaluated
FALSEnever evaluated
0
195 else
never executed: se
0
196 {-
197-
198 char *result =-
199 ((char *) (sizeof (char) == 1 ? xmalloc (strlen (translation) + 2 + strlen (name) + 1 + 1) : xnmalloc (strlen (translation) + 2 + strlen (name) + 1 + 1, sizeof (char))));-
200-
201 sprintf (result, "%s (%s)", translation, name);-
202 return result;-
203 }0
204 }-
205 else-
206 return name;-
207}0
208-
209-
210-
211-
212-
213-
214const char *-
215proper_name_utf8 (const char *name_ascii, const char *name_utf8)-
216{-
217-
218 const char *translation = -
219 dcgettext (((void *)0), -
220 name_ascii-
221 , 5)-
222 ;-
223-
224-
225 const char *locale_code = locale_charset ();-
226 char *alloc_name_converted = -
227 ((void *)0)-
228 ;-
229 char *alloc_name_converted_translit = -
230 ((void *)0)-
231 ;-
232 const char *name_converted = -
233 ((void *)0)-
234 ;-
235 const char *name_converted_translit = -
236 ((void *)0)-
237 ;-
238 const char *name;-
239-
240 if (c_strcasecmp (locale_code, "UTF-8") != 0)-
241 {0-15
242-
243 name_converted = alloc_name_converted =-
244 xstr_iconv (name_utf8, "UTF-8", locale_code);-
245-
246-
247-
248-
249 {-
250 char *converted_translit;-
251-
252 size_t len = strlen (locale_code);-
253 char *locale_code_translit = ((char *) (sizeof (char) == 1 ? xmalloc (len + 10 + 1) : xnmalloc (len + 10 + 1, sizeof (char))));-
254 memcpy (locale_code_translit, locale_code, len);-
255 memcpy (locale_code_translit + len, "//TRANSLIT", 10 + 1);-
256-
257 converted_translit =-
258 xstr_iconv (name_utf8, "UTF-8", locale_code_translit);-
259-
260 free (locale_code_translit);-
261-
262 if (converted_translit != -
263 ((void *)0)
((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
264 )
((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
265 {-
266-
267-
268-
269-
270-
271 if (-
272 (__extension__ (__builtin_constant_p (-
273 '?'
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
274 ) && !__builtin_constant_p (
) && !__builtin_constant_p ( cDescription
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
275 c
) && !__builtin_constant_p ( cDescription
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
onverted_translit
rted_translit ) && ( 'Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
276 ) && (
rted_translit ) && ( 'Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
277 '
rted_translit ) && ( 'Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
?'
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
278 ) == '\0' ? (char *) __rawmemchr (
) == '\0' ? (c...hr ( convertedDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
279 converted
) == '\0' ? (c...hr ( convertedDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
_translit
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
280 ,
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
281 '?'
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
282 ) : __builtin_strchr (
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
283 converted_translit
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
284 ,
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
285 '?'
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
286 )))
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
287 !=
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
288 ((void *)0)
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
289 )
'?' ) && !__bu... ((void *)0) )Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
FALSEnever evaluated
0-15
290 free (converted_translit);-
291 else
executed 15 times by 2 tests: se
Executed by:
  • factor
  • ptx
15
292-
293 name_converted_translit = alloc_name_converted_translit =-
294 converted_translit;
never executed: converted_translit; }
0
295 }
never executed: converted_translit; }
0
296 }-
297-
298-
299 }-
300 els
executed 15 times by 2 tests: s
Executed by:
  • factor
  • ptx
e
15
301 {-
302 name_converted = name_utf8;-
303 name_converted_translit = name_utf8;-
304 }-
3050
306-
307 name = (name_converted != -
308 ((void *)0)
((void *)0) ? nameDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
309 ? name
((void *)0) ? nameDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
_converted :
0-15
310 name_converted_translit != -
311 ((void *)0)
((void *)0) ? nameDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
312 ? name
((void *)0) ? nameDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
_converted_translit :
0-15
313 name_ascii);-
314-
315-
316-
317-
318 if (-
319 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (-
320 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
321 ) && __builtin_constant_p (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
322 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
323 ) && (__s1_len = __builtin_strlen (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
324 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
325 ), __s2_len = __builtin_strlen (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
326 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
327 ), (!((size_t)(const void *)((
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
328 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
329 ) + 1) - (size_t)(const void *)(
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
330 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
331 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
332 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
333 ) + 1) - (size_t)(const void *)(
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
334 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
335 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
336 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
337 ,
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
338 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
339 ) : (__builtin_constant_p (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
340 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
341 ) && ((size_t)(const void *)((
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
342 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
343 ) + 1) - (size_t)(const void *)(
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
344 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
345 ) == 1) && (__s1_len = __builtin_strlen (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
346 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
347 ), __s1_len < 4) ? (__builtin_constant_p (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
348 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
349 ) && ((size_t)(const void *)((
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
350 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
351 ) + 1) - (size_t)(const void *)(
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
352 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
353 ) == 1) ? __builtin_strcmp (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
354 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
355 ,
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
356 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
357 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
358 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
359 ); int __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
360 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
361 ))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
362 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
363 ))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
364 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
365 ))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
366 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
367 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
never executed: ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ( name_ascii
0-15
368 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
never executed: ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ( name_ascii
0-15
369 ) && ((size_t)(const void *)((
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
370 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
371 ) + 1) - (size_t)(const void *)(
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
372 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
373 ) == 1) && (__s2_len = __builtin_strlen (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
374 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
375 ), __s2_len < 4) ? (__builtin_constant_p (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
376 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
377 ) && ((size_t)(const void *)((
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
378 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
379 ) + 1) - (size_t)(const void *)(
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
380 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
381 ) == 1) ? __builtin_strcmp (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
382 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
383 ,
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
384 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
385 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
386 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
387 ); int __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
388 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
389 ))[0] - __s2[0]); if (__s2_len > 0 && __result == 0) { __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
390 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
391 ))[1] - __s2[1]); if (__s2_len > 1 && __result == 0) { __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
392 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
393 ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
394 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
395 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
never executed: ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( translation
0-15
396 translation
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
never executed: ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( translation
0-15
397 ,
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
398 name_ascii
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
399 )))); })
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
400 != 0)
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
401 {
translation ) ...)); }) != 0) {Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
402-
403 if (mbsstr_trimmed_wordbounded (translation, name_ascii)-
404 ||
|| (name_converted !=Description
TRUEnever evaluated
FALSEnever evaluated
(name_converted !=
|| (name_converted !=Description
TRUEnever evaluated
FALSEnever evaluated
0
405 ((void *)0)
((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
406
((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
407 && mbsstr_trimmed_wordbounded (translation, name_converted))-
408 || (name_converted_translit !=
me_converted_translit !=Description
TRUEnever evaluated
FALSEnever evaluated
0
409 ((void *)0)
((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
410
((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
411 && mbsstr_trimmed_wordbounded (translation, name_converted_translit)))-
412 {0
413 if (alloc_name_converted != -
414 ((void *)0)
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
415 )
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
416 free (alloc_name_converted);-
417 if (alloc_name_converted_trans
never executed: (alloc_name_converted_trans
lit !=
0
418 ((void *)0)
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
419 )
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
420 free (alloc_name_converted_translit);-
421 return
never executed: turn translation;
translation;
never executed: turn translation;
0
422 }0
423 else-
424 {-
425-
426 char *result =-
427 ((char *) (sizeof (char) == 1 ? xmalloc (strlen (translation) + 2 + strlen (name) + 1 + 1) : xnmalloc (strlen (translation) + 2 + strlen (name) + 1 + 1, sizeof (char))));-
428-
429 sprintf (result, "%s (%s)", translation, name);-
430-
431 if (alloc_name_converted != -
432 ((void *)0)
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
433 )
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
434 free (alloc_name_converted);-
435 if (alloc_name_converted_trans
never executed: (alloc_name_converted_trans
lit !=
0
436 ((void *)0)
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
437 )
((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
438 free (alloc_name_converted_translit);-
439 return
never executed: turn result;
result;
never executed: turn result;
0
440 }0
441 }-
442 else-
443 {-
444 if (alloc_name_converted != -
445 ((void *)0)
((void *)0) && allDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
446 && all
((void *)0) && allDescription
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
oc_name_converted != name)
0-15
447 free (alloc_name_converted);0
448 if (alloc_name_converted_trans
never executed: (alloc_name_converted_trans
lit !=
0
449 ((void *)0)
((void *)0)Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
450
((void *)0)Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • factor
  • ptx
0-15
451 && alloc_name_converted_translit != name)-
452 free (alloc_name_converted_translit);
(alloc_name_co...ted_translit);Description
TRUEnever evaluated
FALSEnever evaluated
0
453 return
never executed: turn name;
name;
never executed: turn name;
0
454 }15
455}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2