Debian Codegraph @

templates/man3/strverscmp.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "strverscmp"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "strverscmp - compare two version strings"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
78 "B<#include E<lt>string.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<int strverscmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
86 msgstr ""
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr ""
94
95 #. classical solution: "rename jan jan0 jan?"
96 #. sort -V sorts a-1.0a < a-1.0.1a; strverscmp() does not
97 #. type: Plain text
98 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
99 #: opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "For a dataset like I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... sorting it "
102 "lexicographically yields I<jan1>, I<jan10>, ..., I<jan2>, ..., I<jan9>. The "
103 "task of B<strverscmp>() is to compare two strings yielding the former "
104 "order, while B<strcmp>(3) finds only the lexicographic order. This "
105 "function does not use the locale category B<LC_COLLATE>, so is meant mostly "
106 "for situations where the strings are expected to be in ASCII. This is "
107 "different from the ordering produced by B<sort>(1) B<-V>."
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "What this function does is the following. If both strings are equal, return "
115 "0. Otherwise, find the position between two bytes with the property that "
116 "before it both strings are equal, while directly after it there is a "
117 "difference. Find the largest consecutive digit strings containing (or "
118 "starting at, or ending at) this position. If one or both of these is empty, "
119 "then return what B<strcmp>(3) would have returned (numerical ordering of "
120 "byte values). Otherwise, compare both digit strings numerically, where "
121 "digit strings with one or more leading zeros are interpreted as if they have "
122 "a decimal point in front (so that in particular digit strings with more "
123 "leading zeros come before digit strings with fewer leading zeros). Thus, "
124 "the ordering is I<000>, I<00>, I<01>, I<010>, I<09>, I<0>, I<1>, I<9>, I<10>."
125 msgstr ""
126
127 #. type: SH
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, no-wrap
131 msgid "RETURN VALUE"
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "The B<strverscmp>() function returns an integer less than, equal to, or "
139 "greater than zero if I<s1> is found, respectively, to be earlier than, equal "
140 "to, or later than I<s2>."
141 msgstr ""
142
143 #. type: SH
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "ATTRIBUTES"
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "For an explanation of the terms used in this section, see B<attributes>(7)."
155 msgstr ""
156
157 #. type: tbl table
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "Interface"
162 msgstr ""
163
164 #. type: tbl table
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "Attribute"
169 msgstr ""
170
171 #. type: tbl table
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 #, no-wrap
175 msgid "Value"
176 msgstr ""
177
178 #. type: tbl table
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 #, no-wrap
182 msgid ".na\n"
183 msgstr ""
184
185 #. type: tbl table
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid ".nh\n"
190 msgstr ""
191
192 #. type: tbl table
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<strverscmp>()"
197 msgstr ""
198
199 #. type: tbl table
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "Thread safety"
204 msgstr ""
205
206 #. type: tbl table
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, no-wrap
210 msgid "MT-Safe"
211 msgstr ""
212
213 #
214 #
215 #. #-#-#-#-# archlinux: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
216 #. FIXME: The marking is different from that in the glibc manual,
217 #. which has:
218 #. strverscmp: MT-Safe locale
219 #. glibc manual says strverscmp should have marking locale because it calls
220 #. isdigit() multiple times and isdigit() uses locale variable.
221 #. But isdigit() has two implementations. With different compiling conditions,
222 #. we may call isdigit() in macro, then strverscmp() should not have locale
223 #. problem.
224 #. type: SH
225 #. #-#-#-#-# debian-trixie: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
226 #. FIXME: The marking is different from that in the glibc manual,
227 #. which has:
228 #. strverscmp: MT-Safe locale
229 #. glibc manual says strverscmp should have marking locale because it calls
230 #. isdigit() multiple times and isdigit() uses locale variable.
231 #. But isdigit() has two implementations. With different compiling conditions,
232 #. we may call isdigit() in macro, then strverscmp() should not have locale
233 #. problem.
234 #. type: SH
235 #. #-#-#-#-# debian-unstable: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
236 #. FIXME: The marking is different from that in the glibc manual,
237 #. which has:
238 #. strverscmp: MT-Safe locale
239 #. glibc manual says strverscmp should have marking locale because it calls
240 #. isdigit() multiple times and isdigit() uses locale variable.
241 #. But isdigit() has two implementations. With different compiling conditions,
242 #. we may call isdigit() in macro, then strverscmp() should not have locale
243 #. problem.
244 #. type: SH
245 #. #-#-#-#-# fedora-44: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
246 #. FIXME: The marking is different from that in the glibc manual,
247 #. which has:
248 #. strverscmp: MT-Safe locale
249 #. glibc manual says strverscmp should have marking locale because it calls
250 #. isdigit() multiple times and isdigit() uses locale variable.
251 #. But isdigit() has two implementations. With different compiling conditions,
252 #. we may call isdigit() in macro, then strverscmp() should not have locale
253 #. problem.
254 #. type: SH
255 #. #-#-#-#-# fedora-rawhide: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
256 #. FIXME: The marking is different from that in the glibc manual,
257 #. which has:
258 #. strverscmp: MT-Safe locale
259 #. glibc manual says strverscmp should have marking locale because it calls
260 #. isdigit() multiple times and isdigit() uses locale variable.
261 #. But isdigit() has two implementations. With different compiling conditions,
262 #. we may call isdigit() in macro, then strverscmp() should not have locale
263 #. problem.
264 #. type: SH
265 #. #-#-#-#-# mageia-cauldron: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
266 #. FIXME: The marking is different from that in the glibc manual,
267 #. which has:
268 #. strverscmp: MT-Safe locale
269 #. glibc manual says strverscmp should have marking locale because it calls
270 #. isdigit() multiple times and isdigit() uses locale variable.
271 #. But isdigit() has two implementations. With different compiling conditions,
272 #. we may call isdigit() in macro, then strverscmp() should not have locale
273 #. problem.
274 #. type: SH
275 #. #-#-#-#-# opensuse-leap-16-1: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
276 #. FIXME: The marking is different from that in the glibc manual,
277 #. which has:
278 #. strverscmp: MT-Safe locale
279 #. glibc manual says strverscmp should have marking locale because it calls
280 #. isdigit() multiple times and isdigit() uses locale variable.
281 #. But isdigit() has two implementations. With different compiling conditions,
282 #. we may call isdigit() in macro, then strverscmp() should not have locale
283 #. problem.
284 #. type: SH
285 #. #-#-#-#-# opensuse-tumbleweed: strverscmp.3.pot (PACKAGE VERSION) #-#-#-#-#
286 #. FIXME: The marking is different from that in the glibc manual,
287 #. which has:
288 #. strverscmp: MT-Safe locale
289 #. glibc manual says strverscmp should have marking locale because it calls
290 #. isdigit() multiple times and isdigit() uses locale variable.
291 #. But isdigit() has two implementations. With different compiling conditions,
292 #. we may call isdigit() in macro, then strverscmp() should not have locale
293 #. problem.
294 #. type: SH
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "STANDARDS"
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid "GNU."
305 msgstr ""
306
307 #. type: SH
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "EXAMPLES"
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "The program below can be used to demonstrate the behavior of "
319 "B<strverscmp>(). It uses B<strverscmp>() to compare the two strings given "
320 "as its command-line arguments. An example of its use is the following:"
321 msgstr ""
322
323 #. type: Plain text
324 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
325 #: opensuse-tumbleweed
326 #, no-wrap
327 msgid ""
328 "$B< ./a.out jan1 jan10>;\n"
329 "jan1 E<lt> jan10\n"
330 msgstr ""
331
332 #. type: SS
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "Program source"
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid ""
344 "#define _GNU_SOURCE\n"
345 "#include E<lt>stdio.hE<gt>\n"
346 "#include E<lt>stdlib.hE<gt>\n"
347 "#include E<lt>string.hE<gt>\n"
348 "\\&\n"
349 "int\n"
350 "main(int argc, char *argv[])\n"
351 "{\n"
352 " int res;\n"
353 "\\&\n"
354 " if (argc != 3) {\n"
355 " fprintf(stderr, \"Usage: %s E<lt>string1E<gt> E<lt>string2E<gt>\\[rs]n\", argv[0]);\n"
356 " exit(EXIT_FAILURE);\n"
357 " }\n"
358 "\\&\n"
359 " res = strverscmp(argv[1], argv[2]);\n"
360 "\\&\n"
361 " printf(\"%s %s %s\\[rs]n\", argv[1],\n"
362 " (res E<lt> 0) ? \"E<lt>\" : (res == 0) ? \"==\" : \"E<gt>\", argv[2]);\n"
363 "\\&\n"
364 " exit(EXIT_SUCCESS);\n"
365 "}\n"
366 msgstr ""
367
368 #. SRC END
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "SEE ALSO"
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "B<rename>(1), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3)"
380 msgstr ""
381
382 #. type: TH
383 #: debian-trixie
384 #, no-wrap
385 msgid "2024-06-15"
386 msgstr ""
387
388 #. type: TH
389 #: debian-trixie
390 #, no-wrap
391 msgid "Linux man-pages 6.9.1"
392 msgstr ""
393
394 #. type: Plain text
395 #: debian-trixie
396 msgid "Standard C library (I<libc>, I<-lc>)"
397 msgstr ""
398
399 #. classical solution: "rename jan jan0 jan?"
400 #. type: Plain text
401 #: debian-trixie
402 msgid ""
403 "Often one has files I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... and it "
404 "feels wrong when B<ls>(1) orders them I<jan1>, I<jan10>, ..., I<jan2>, ..., "
405 "I<jan9>. In order to rectify this, GNU introduced the I<-v> option to "
406 "B<ls>(1), which is implemented using B<versionsort>(3), which again uses "
407 "B<strverscmp>()."
408 msgstr ""
409
410 #. type: Plain text
411 #: debian-trixie
412 msgid ""
413 "Thus, the task of B<strverscmp>() is to compare two strings and find the "
414 "\"right\" order, while B<strcmp>(3) finds only the lexicographic order. "
415 "This function does not use the locale category B<LC_COLLATE>, so is meant "
416 "mostly for situations where the strings are expected to be in ASCII."
417 msgstr ""
418
419 #. type: Plain text
420 #: debian-trixie fedora-44 fedora-rawhide
421 #, no-wrap
422 msgid ""
423 "$ B<./a.out jan1 jan10>\n"
424 "jan1 E<lt> jan10\n"
425 msgstr ""
426
427 #. type: TH
428 #: fedora-44 fedora-rawhide
429 #, no-wrap
430 msgid "2024-12-16"
431 msgstr ""
432
433 #. type: TH
434 #: fedora-44 fedora-rawhide
435 #, no-wrap
436 msgid "Linux man-pages 6.13"
437 msgstr ""
438
439 #. type: TH
440 #: mageia-cauldron
441 #, no-wrap
442 msgid "Linux man-pages 6.17"
443 msgstr ""
444
445 #. type: TH
446 #: opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "Linux man-pages (unreleased)"
449 msgstr ""