-
-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy pathunicode.po
More file actions
1275 lines (1054 loc) · 39.1 KB
/
unicode.po
File metadata and controls
1275 lines (1054 loc) · 39.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2016, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-30 10:44+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/c-api/unicode.rst:6
msgid "Unicode Objects and Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:11
msgid "Unicode Objects"
msgstr ""
#: ../Doc/c-api/unicode.rst:15
msgid "Unicode Type"
msgstr ""
#: ../Doc/c-api/unicode.rst:17
msgid ""
"These are the basic Unicode object types used for the Unicode implementation "
"in Python:"
msgstr ""
#: ../Doc/c-api/unicode.rst:23
msgid ""
"This type represents the storage type which is used by Python internally as "
"basis for holding Unicode ordinals. Python's default builds use a 16-bit "
"type for :c:type:`Py_UNICODE` and store Unicode values internally as UCS2. "
"It is also possible to build a UCS4 version of Python (most recent Linux "
"distributions come with UCS4 builds of Python). These builds then use a 32-"
"bit type for :c:type:`Py_UNICODE` and store Unicode data internally as UCS4. "
"On platforms where :c:type:`wchar_t` is available and compatible with the "
"chosen Python Unicode build variant, :c:type:`Py_UNICODE` is a typedef alias "
"for :c:type:`wchar_t` to enhance native platform compatibility. On all other "
"platforms, :c:type:`Py_UNICODE` is a typedef alias for either :c:type:"
"`unsigned short` (UCS2) or :c:type:`unsigned long` (UCS4)."
msgstr ""
#: ../Doc/c-api/unicode.rst:35
msgid ""
"Note that UCS2 and UCS4 Python builds are not binary compatible. Please keep "
"this in mind when writing extensions or interfaces."
msgstr ""
#: ../Doc/c-api/unicode.rst:41
msgid "This subtype of :c:type:`PyObject` represents a Python Unicode object."
msgstr ""
#: ../Doc/c-api/unicode.rst:46
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python Unicode type. "
"It is exposed to Python code as ``unicode`` and ``types.UnicodeType``."
msgstr ""
#: ../Doc/c-api/unicode.rst:49
msgid ""
"The following APIs are really C macros and can be used to do fast checks and "
"to access internal read-only data of Unicode objects:"
msgstr ""
#: ../Doc/c-api/unicode.rst:55
msgid ""
"Return true if the object *o* is a Unicode object or an instance of a "
"Unicode subtype."
msgstr ""
#: ../Doc/c-api/unicode.rst:58
msgid "Allowed subtypes to be accepted."
msgstr ""
#: ../Doc/c-api/unicode.rst:64
msgid ""
"Return true if the object *o* is a Unicode object, but not an instance of a "
"subtype."
msgstr ""
#: ../Doc/c-api/unicode.rst:72
msgid ""
"Return the size of the object. *o* has to be a :c:type:`PyUnicodeObject` "
"(not checked)."
msgstr ""
#: ../Doc/c-api/unicode.rst:75 ../Doc/c-api/unicode.rst:85
#: ../Doc/c-api/unicode.rst:343
msgid ""
"This function returned an :c:type:`int` type. This might require changes in "
"your code for properly supporting 64-bit systems."
msgstr ""
#: ../Doc/c-api/unicode.rst:82
msgid ""
"Return the size of the object's internal buffer in bytes. *o* has to be a :"
"c:type:`PyUnicodeObject` (not checked)."
msgstr ""
#: ../Doc/c-api/unicode.rst:92
msgid ""
"Return a pointer to the internal :c:type:`Py_UNICODE` buffer of the object. "
"*o* has to be a :c:type:`PyUnicodeObject` (not checked)."
msgstr ""
#: ../Doc/c-api/unicode.rst:98
msgid ""
"Return a pointer to the internal buffer of the object. *o* has to be a :c:"
"type:`PyUnicodeObject` (not checked)."
msgstr ""
#: ../Doc/c-api/unicode.rst:104
msgid "Clear the free list. Return the total number of freed items."
msgstr ""
#: ../Doc/c-api/unicode.rst:110
msgid "Unicode Character Properties"
msgstr ""
#: ../Doc/c-api/unicode.rst:112
msgid ""
"Unicode provides many different character properties. The most often needed "
"ones are available through these macros which are mapped to C functions "
"depending on the Python configuration."
msgstr ""
#: ../Doc/c-api/unicode.rst:119
msgid "Return 1 or 0 depending on whether *ch* is a whitespace character."
msgstr ""
#: ../Doc/c-api/unicode.rst:124
msgid "Return 1 or 0 depending on whether *ch* is a lowercase character."
msgstr ""
#: ../Doc/c-api/unicode.rst:129
msgid "Return 1 or 0 depending on whether *ch* is an uppercase character."
msgstr ""
#: ../Doc/c-api/unicode.rst:134
msgid "Return 1 or 0 depending on whether *ch* is a titlecase character."
msgstr ""
#: ../Doc/c-api/unicode.rst:139
msgid "Return 1 or 0 depending on whether *ch* is a linebreak character."
msgstr ""
#: ../Doc/c-api/unicode.rst:144
msgid "Return 1 or 0 depending on whether *ch* is a decimal character."
msgstr ""
#: ../Doc/c-api/unicode.rst:149
msgid "Return 1 or 0 depending on whether *ch* is a digit character."
msgstr ""
#: ../Doc/c-api/unicode.rst:154
msgid "Return 1 or 0 depending on whether *ch* is a numeric character."
msgstr ""
#: ../Doc/c-api/unicode.rst:159
msgid "Return 1 or 0 depending on whether *ch* is an alphabetic character."
msgstr ""
#: ../Doc/c-api/unicode.rst:164
msgid "Return 1 or 0 depending on whether *ch* is an alphanumeric character."
msgstr ""
#: ../Doc/c-api/unicode.rst:166
msgid "These APIs can be used for fast direct character conversions:"
msgstr ""
#: ../Doc/c-api/unicode.rst:171
msgid "Return the character *ch* converted to lower case."
msgstr ""
#: ../Doc/c-api/unicode.rst:176
msgid "Return the character *ch* converted to upper case."
msgstr ""
#: ../Doc/c-api/unicode.rst:181
msgid "Return the character *ch* converted to title case."
msgstr ""
#: ../Doc/c-api/unicode.rst:186
msgid ""
"Return the character *ch* converted to a decimal positive integer. Return "
"``-1`` if this is not possible. This macro does not raise exceptions."
msgstr ""
#: ../Doc/c-api/unicode.rst:192
msgid ""
"Return the character *ch* converted to a single digit integer. Return ``-1`` "
"if this is not possible. This macro does not raise exceptions."
msgstr ""
#: ../Doc/c-api/unicode.rst:198
msgid ""
"Return the character *ch* converted to a double. Return ``-1.0`` if this is "
"not possible. This macro does not raise exceptions."
msgstr ""
#: ../Doc/c-api/unicode.rst:203
msgid "Plain Py_UNICODE"
msgstr ""
#: ../Doc/c-api/unicode.rst:205
msgid ""
"To create Unicode objects and access their basic sequence properties, use "
"these APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:211
msgid ""
"Create a Unicode object from the Py_UNICODE buffer *u* of the given size. "
"*u* may be *NULL* which causes the contents to be undefined. It is the "
"user's responsibility to fill in the needed data. The buffer is copied into "
"the new object. If the buffer is not *NULL*, the return value might be a "
"shared object. Therefore, modification of the resulting Unicode object is "
"only allowed when *u* is *NULL*."
msgstr ""
#: ../Doc/c-api/unicode.rst:218 ../Doc/c-api/unicode.rst:386
#: ../Doc/c-api/unicode.rst:449 ../Doc/c-api/unicode.rst:462
#: ../Doc/c-api/unicode.rst:487 ../Doc/c-api/unicode.rst:501
#: ../Doc/c-api/unicode.rst:511 ../Doc/c-api/unicode.rst:631
#: ../Doc/c-api/unicode.rst:670 ../Doc/c-api/unicode.rst:725
#: ../Doc/c-api/unicode.rst:736 ../Doc/c-api/unicode.rst:759
#: ../Doc/c-api/unicode.rst:770 ../Doc/c-api/unicode.rst:794
#: ../Doc/c-api/unicode.rst:804 ../Doc/c-api/unicode.rst:828
#: ../Doc/c-api/unicode.rst:838 ../Doc/c-api/unicode.rst:888
#: ../Doc/c-api/unicode.rst:899 ../Doc/c-api/unicode.rst:926
#: ../Doc/c-api/unicode.rst:945 ../Doc/c-api/unicode.rst:965
msgid ""
"This function used an :c:type:`int` type for *size*. This might require "
"changes in your code for properly supporting 64-bit systems."
msgstr ""
#: ../Doc/c-api/unicode.rst:225
msgid ""
"Create a Unicode object from the char buffer *u*. The bytes will be "
"interpreted as being UTF-8 encoded. *u* may also be *NULL* which causes the "
"contents to be undefined. It is the user's responsibility to fill in the "
"needed data. The buffer is copied into the new object. If the buffer is not "
"*NULL*, the return value might be a shared object. Therefore, modification "
"of the resulting Unicode object is only allowed when *u* is *NULL*."
msgstr ""
#: ../Doc/c-api/unicode.rst:237
msgid ""
"Create a Unicode object from a UTF-8 encoded null-terminated char buffer *u*."
msgstr ""
#: ../Doc/c-api/unicode.rst:245
msgid ""
"Take a C :c:func:`printf`\\ -style *format* string and a variable number of "
"arguments, calculate the size of the resulting Python unicode string and "
"return a string with the values formatted into it. The variable arguments "
"must be C types and must correspond exactly to the format characters in the "
"*format* string. The following format characters are allowed:"
msgstr ""
#: ../Doc/c-api/unicode.rst:258
msgid "Format Characters"
msgstr "Caractères de format"
#: ../Doc/c-api/unicode.rst:258
msgid "Type"
msgstr "Type"
#: ../Doc/c-api/unicode.rst:258
msgid "Comment"
msgstr ""
#: ../Doc/c-api/unicode.rst:260
msgid ":attr:`%%`"
msgstr ""
#: ../Doc/c-api/unicode.rst:260
msgid "*n/a*"
msgstr ""
#: ../Doc/c-api/unicode.rst:260
msgid "The literal % character."
msgstr ""
#: ../Doc/c-api/unicode.rst:262
msgid ":attr:`%c`"
msgstr ""
#: ../Doc/c-api/unicode.rst:262 ../Doc/c-api/unicode.rst:265
#: ../Doc/c-api/unicode.rst:283 ../Doc/c-api/unicode.rst:286
msgid "int"
msgstr "*int*"
#: ../Doc/c-api/unicode.rst:262
msgid "A single character, represented as a C int."
msgstr ""
#: ../Doc/c-api/unicode.rst:265
msgid ":attr:`%d`"
msgstr ""
#: ../Doc/c-api/unicode.rst:265
msgid "Exactly equivalent to ``printf(\"%d\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:268
msgid ":attr:`%u`"
msgstr ""
#: ../Doc/c-api/unicode.rst:268
msgid "unsigned int"
msgstr "``unsigned int``"
#: ../Doc/c-api/unicode.rst:268
msgid "Exactly equivalent to ``printf(\"%u\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:271
msgid ":attr:`%ld`"
msgstr ""
#: ../Doc/c-api/unicode.rst:271
msgid "long"
msgstr ""
#: ../Doc/c-api/unicode.rst:271
msgid "Exactly equivalent to ``printf(\"%ld\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:274
msgid ":attr:`%lu`"
msgstr ""
#: ../Doc/c-api/unicode.rst:274
msgid "unsigned long"
msgstr "``unsigned long``"
#: ../Doc/c-api/unicode.rst:274
msgid "Exactly equivalent to ``printf(\"%lu\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:277
msgid ":attr:`%zd`"
msgstr ""
#: ../Doc/c-api/unicode.rst:277
msgid "Py_ssize_t"
msgstr ""
#: ../Doc/c-api/unicode.rst:277
msgid "Exactly equivalent to ``printf(\"%zd\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:280
msgid ":attr:`%zu`"
msgstr ""
#: ../Doc/c-api/unicode.rst:280
msgid "size_t"
msgstr ""
#: ../Doc/c-api/unicode.rst:280
msgid "Exactly equivalent to ``printf(\"%zu\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:283
msgid ":attr:`%i`"
msgstr ""
#: ../Doc/c-api/unicode.rst:283
msgid "Exactly equivalent to ``printf(\"%i\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:286
msgid ":attr:`%x`"
msgstr ""
#: ../Doc/c-api/unicode.rst:286
msgid "Exactly equivalent to ``printf(\"%x\")``."
msgstr ""
#: ../Doc/c-api/unicode.rst:289
msgid ":attr:`%s`"
msgstr ""
#: ../Doc/c-api/unicode.rst:289
msgid "char\\*"
msgstr ""
#: ../Doc/c-api/unicode.rst:289
msgid "A null-terminated C character array."
msgstr ""
#: ../Doc/c-api/unicode.rst:292
msgid ":attr:`%p`"
msgstr ""
#: ../Doc/c-api/unicode.rst:292
msgid "void\\*"
msgstr ""
#: ../Doc/c-api/unicode.rst:292
msgid ""
"The hex representation of a C pointer. Mostly equivalent to ``printf(\"%p"
"\")`` except that it is guaranteed to start with the literal ``0x`` "
"regardless of what the platform's ``printf`` yields."
msgstr ""
#: ../Doc/c-api/unicode.rst:300
msgid ":attr:`%U`"
msgstr ""
#: ../Doc/c-api/unicode.rst:300 ../Doc/c-api/unicode.rst:309
#: ../Doc/c-api/unicode.rst:312
msgid "PyObject\\*"
msgstr "PyObject\\*"
#: ../Doc/c-api/unicode.rst:300
msgid "A unicode object."
msgstr "Un objet Unicode."
#: ../Doc/c-api/unicode.rst:302
msgid ":attr:`%V`"
msgstr ""
#: ../Doc/c-api/unicode.rst:302
msgid "PyObject\\*, char \\*"
msgstr ""
#: ../Doc/c-api/unicode.rst:302
msgid ""
"A unicode object (which may be *NULL*) and a null-terminated C character "
"array as a second parameter (which will be used, if the first parameter is "
"*NULL*)."
msgstr ""
#: ../Doc/c-api/unicode.rst:309
msgid ":attr:`%S`"
msgstr ""
#: ../Doc/c-api/unicode.rst:309
msgid "The result of calling :func:`PyObject_Unicode`."
msgstr ""
#: ../Doc/c-api/unicode.rst:312
msgid ":attr:`%R`"
msgstr ""
#: ../Doc/c-api/unicode.rst:312
msgid "The result of calling :func:`PyObject_Repr`."
msgstr ""
#: ../Doc/c-api/unicode.rst:316
msgid ""
"An unrecognized format character causes all the rest of the format string to "
"be copied as-is to the result string, and any extra arguments discarded."
msgstr ""
#: ../Doc/c-api/unicode.rst:324
msgid ""
"Identical to :func:`PyUnicode_FromFormat` except that it takes exactly two "
"arguments."
msgstr ""
#: ../Doc/c-api/unicode.rst:332
msgid ""
"Return a read-only pointer to the Unicode object's internal :c:type:"
"`Py_UNICODE` buffer, *NULL* if *unicode* is not a Unicode object. Note that "
"the resulting :c:type:`Py_UNICODE*` string may contain embedded null "
"characters, which would cause the string to be truncated when used in most C "
"functions."
msgstr ""
#: ../Doc/c-api/unicode.rst:341
msgid "Return the length of the Unicode object."
msgstr ""
#: ../Doc/c-api/unicode.rst:350
msgid ""
"Coerce an encoded object *obj* to a Unicode object and return a reference "
"with incremented refcount."
msgstr ""
#: ../Doc/c-api/unicode.rst:353
msgid ""
"String and other char buffer compatible objects are decoded according to the "
"given encoding and using the error handling defined by errors. Both can be "
"*NULL* to have the interface use the default values (see the next section "
"for details)."
msgstr ""
#: ../Doc/c-api/unicode.rst:358
msgid ""
"All other objects, including Unicode objects, cause a :exc:`TypeError` to be "
"set."
msgstr ""
#: ../Doc/c-api/unicode.rst:361
msgid ""
"The API returns *NULL* if there was an error. The caller is responsible for "
"decref'ing the returned objects."
msgstr ""
#: ../Doc/c-api/unicode.rst:367
msgid ""
"Shortcut for ``PyUnicode_FromEncodedObject(obj, NULL, \"strict\")`` which is "
"used throughout the interpreter whenever coercion to Unicode is needed."
msgstr ""
#: ../Doc/c-api/unicode.rst:370
msgid ""
"If the platform supports :c:type:`wchar_t` and provides a header file wchar."
"h, Python can interface directly to this type using the following functions. "
"Support is optimized if Python's own :c:type:`Py_UNICODE` type is identical "
"to the system's :c:type:`wchar_t`."
msgstr ""
#: ../Doc/c-api/unicode.rst:377
msgid "wchar_t Support"
msgstr ""
#: ../Doc/c-api/unicode.rst:379
msgid ":c:type:`wchar_t` support for platforms which support it:"
msgstr ""
#: ../Doc/c-api/unicode.rst:383
msgid ""
"Create a Unicode object from the :c:type:`wchar_t` buffer *w* of the given "
"*size*. Return *NULL* on failure."
msgstr ""
#: ../Doc/c-api/unicode.rst:393
msgid ""
"Copy the Unicode object contents into the :c:type:`wchar_t` buffer *w*. At "
"most *size* :c:type:`wchar_t` characters are copied (excluding a possibly "
"trailing 0-termination character). Return the number of :c:type:`wchar_t` "
"characters copied or -1 in case of an error. Note that the resulting :c:"
"type:`wchar_t` string may or may not be 0-terminated. It is the "
"responsibility of the caller to make sure that the :c:type:`wchar_t` string "
"is 0-terminated in case this is required by the application. Also, note that "
"the :c:type:`wchar_t*` string might contain null characters, which would "
"cause the string to be truncated when used with most C functions."
msgstr ""
#: ../Doc/c-api/unicode.rst:403
msgid ""
"This function returned an :c:type:`int` type and used an :c:type:`int` type "
"for *size*. This might require changes in your code for properly supporting "
"64-bit systems."
msgstr ""
#: ../Doc/c-api/unicode.rst:412
msgid "Built-in Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:414
msgid ""
"Python provides a set of built-in codecs which are written in C for speed. "
"All of these codecs are directly usable via the following functions."
msgstr ""
#: ../Doc/c-api/unicode.rst:417
msgid ""
"Many of the following APIs take two arguments encoding and errors, and they "
"have the same semantics as the ones of the built-in :func:`unicode` Unicode "
"object constructor."
msgstr ""
#: ../Doc/c-api/unicode.rst:421
msgid ""
"Setting encoding to *NULL* causes the default encoding to be used which is "
"ASCII. The file system calls should use :c:data:"
"`Py_FileSystemDefaultEncoding` as the encoding for file names. This variable "
"should be treated as read-only: on some systems, it will be a pointer to a "
"static string, on others, it will change at run-time (such as when the "
"application invokes setlocale)."
msgstr ""
#: ../Doc/c-api/unicode.rst:427
msgid ""
"Error handling is set by errors which may also be set to *NULL* meaning to "
"use the default handling defined for the codec. Default error handling for "
"all built-in codecs is \"strict\" (:exc:`ValueError` is raised)."
msgstr ""
#: ../Doc/c-api/unicode.rst:431
msgid ""
"The codecs all use a similar interface. Only deviation from the following "
"generic ones are documented for simplicity."
msgstr ""
#: ../Doc/c-api/unicode.rst:436
msgid "Generic Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:438
msgid "These are the generic codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:443
msgid ""
"Create a Unicode object by decoding *size* bytes of the encoded string *s*. "
"*encoding* and *errors* have the same meaning as the parameters of the same "
"name in the :func:`unicode` built-in function. The codec to be used is "
"looked up using the Python codec registry. Return *NULL* if an exception "
"was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:456
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer *s* of the given *size* and return a "
"Python string object. *encoding* and *errors* have the same meaning as the "
"parameters of the same name in the Unicode :meth:`~unicode.encode` method. "
"The codec to be used is looked up using the Python codec registry. Return "
"*NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:469
msgid ""
"Encode a Unicode object and return the result as Python string object. "
"*encoding* and *errors* have the same meaning as the parameters of the same "
"name in the Unicode :meth:`encode` method. The codec to be used is looked up "
"using the Python codec registry. Return *NULL* if an exception was raised by "
"the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:477
msgid "UTF-8 Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:479
msgid "These are the UTF-8 codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:484
msgid ""
"Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string "
"*s*. Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:494
msgid ""
"If *consumed* is *NULL*, behave like :c:func:`PyUnicode_DecodeUTF8`. If "
"*consumed* is not *NULL*, trailing incomplete UTF-8 byte sequences will not "
"be treated as an error. Those bytes will not be decoded and the number of "
"bytes that have been decoded will be stored in *consumed*."
msgstr ""
#: ../Doc/c-api/unicode.rst:508
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer *s* of the given *size* using UTF-8 "
"and return a Python string object. Return *NULL* if an exception was raised "
"by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:518
msgid ""
"Encode a Unicode object using UTF-8 and return the result as Python string "
"object. Error handling is \"strict\". Return *NULL* if an exception was "
"raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:524
msgid "UTF-32 Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:526
msgid "These are the UTF-32 codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:531
msgid ""
"Decode *size* bytes from a UTF-32 encoded buffer string and return the "
"corresponding Unicode object. *errors* (if non-*NULL*) defines the error "
"handling. It defaults to \"strict\"."
msgstr ""
#: ../Doc/c-api/unicode.rst:535 ../Doc/c-api/unicode.rst:611
msgid ""
"If *byteorder* is non-*NULL*, the decoder starts decoding using the given "
"byte order::"
msgstr ""
#: ../Doc/c-api/unicode.rst:542
msgid ""
"If ``*byteorder`` is zero, and the first four bytes of the input data are a "
"byte order mark (BOM), the decoder switches to this byte order and the BOM "
"is not copied into the resulting Unicode string. If ``*byteorder`` is "
"``-1`` or ``1``, any byte order mark is copied to the output."
msgstr ""
#: ../Doc/c-api/unicode.rst:547 ../Doc/c-api/unicode.rst:624
msgid ""
"After completion, *\\*byteorder* is set to the current byte order at the end "
"of input data."
msgstr ""
#: ../Doc/c-api/unicode.rst:550
msgid ""
"In a narrow build code points outside the BMP will be decoded as surrogate "
"pairs."
msgstr ""
#: ../Doc/c-api/unicode.rst:552 ../Doc/c-api/unicode.rst:627
msgid "If *byteorder* is *NULL*, the codec starts in native order mode."
msgstr ""
#: ../Doc/c-api/unicode.rst:554 ../Doc/c-api/unicode.rst:585
#: ../Doc/c-api/unicode.rst:629 ../Doc/c-api/unicode.rst:668
msgid "Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:561
msgid ""
"If *consumed* is *NULL*, behave like :c:func:`PyUnicode_DecodeUTF32`. If "
"*consumed* is not *NULL*, :c:func:`PyUnicode_DecodeUTF32Stateful` will not "
"treat trailing incomplete UTF-32 byte sequences (such as a number of bytes "
"not divisible by four) as an error. Those bytes will not be decoded and the "
"number of bytes that have been decoded will be stored in *consumed*."
msgstr ""
#: ../Doc/c-api/unicode.rst:572
msgid ""
"Return a Python bytes object holding the UTF-32 encoded value of the Unicode "
"data in *s*. Output is written according to the following byte order::"
msgstr ""
#: ../Doc/c-api/unicode.rst:579 ../Doc/c-api/unicode.rst:661
msgid ""
"If byteorder is ``0``, the output string will always start with the Unicode "
"BOM mark (U+FEFF). In the other two modes, no BOM mark is prepended."
msgstr ""
#: ../Doc/c-api/unicode.rst:582
msgid ""
"If *Py_UNICODE_WIDE* is not defined, surrogate pairs will be output as a "
"single code point."
msgstr ""
#: ../Doc/c-api/unicode.rst:592
msgid ""
"Return a Python string using the UTF-32 encoding in native byte order. The "
"string always starts with a BOM mark. Error handling is \"strict\". Return "
"*NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:600
msgid "UTF-16 Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:602
msgid "These are the UTF-16 codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:607
msgid ""
"Decode *size* bytes from a UTF-16 encoded buffer string and return the "
"corresponding Unicode object. *errors* (if non-*NULL*) defines the error "
"handling. It defaults to \"strict\"."
msgstr ""
#: ../Doc/c-api/unicode.rst:618
msgid ""
"If ``*byteorder`` is zero, and the first two bytes of the input data are a "
"byte order mark (BOM), the decoder switches to this byte order and the BOM "
"is not copied into the resulting Unicode string. If ``*byteorder`` is "
"``-1`` or ``1``, any byte order mark is copied to the output (where it will "
"result in either a ``\\ufeff`` or a ``\\ufffe`` character)."
msgstr ""
#: ../Doc/c-api/unicode.rst:638
msgid ""
"If *consumed* is *NULL*, behave like :c:func:`PyUnicode_DecodeUTF16`. If "
"*consumed* is not *NULL*, :c:func:`PyUnicode_DecodeUTF16Stateful` will not "
"treat trailing incomplete UTF-16 byte sequences (such as an odd number of "
"bytes or a split surrogate pair) as an error. Those bytes will not be "
"decoded and the number of bytes that have been decoded will be stored in "
"*consumed*."
msgstr ""
#: ../Doc/c-api/unicode.rst:646
msgid ""
"This function used an :c:type:`int` type for *size* and an :c:type:`int *` "
"type for *consumed*. This might require changes in your code for properly "
"supporting 64-bit systems."
msgstr ""
#: ../Doc/c-api/unicode.rst:654
msgid ""
"Return a Python string object holding the UTF-16 encoded value of the "
"Unicode data in *s*. Output is written according to the following byte "
"order::"
msgstr ""
#: ../Doc/c-api/unicode.rst:664
msgid ""
"If *Py_UNICODE_WIDE* is defined, a single :c:type:`Py_UNICODE` value may get "
"represented as a surrogate pair. If it is not defined, each :c:type:"
"`Py_UNICODE` values is interpreted as a UCS-2 character."
msgstr ""
#: ../Doc/c-api/unicode.rst:677
msgid ""
"Return a Python string using the UTF-16 encoding in native byte order. The "
"string always starts with a BOM mark. Error handling is \"strict\". Return "
"*NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:683
msgid "UTF-7 Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:685
msgid "These are the UTF-7 codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:690
msgid ""
"Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string "
"*s*. Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:696
msgid ""
"If *consumed* is *NULL*, behave like :c:func:`PyUnicode_DecodeUTF7`. If "
"*consumed* is not *NULL*, trailing incomplete UTF-7 base-64 sections will "
"not be treated as an error. Those bytes will not be decoded and the number "
"of bytes that have been decoded will be stored in *consumed*."
msgstr ""
#: ../Doc/c-api/unicode.rst:704
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer of the given size using UTF-7 and "
"return a Python bytes object. Return *NULL* if an exception was raised by "
"the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:708
msgid ""
"If *base64SetO* is nonzero, \"Set O\" (punctuation that has no otherwise "
"special meaning) will be encoded in base-64. If *base64WhiteSpace* is "
"nonzero, whitespace will be encoded in base-64. Both are set to zero for "
"the Python \"utf-7\" codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:715
msgid "Unicode-Escape Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:717
msgid "These are the \"Unicode Escape\" codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:722
msgid ""
"Create a Unicode object by decoding *size* bytes of the Unicode-Escape "
"encoded string *s*. Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:732
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Unicode-"
"Escape and return a Python string object. Return *NULL* if an exception was "
"raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:743
msgid ""
"Encode a Unicode object using Unicode-Escape and return the result as Python "
"string object. Error handling is \"strict\". Return *NULL* if an exception "
"was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:749
msgid "Raw-Unicode-Escape Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:751
msgid "These are the \"Raw Unicode Escape\" codec APIs:"
msgstr ""
#: ../Doc/c-api/unicode.rst:756
msgid ""
"Create a Unicode object by decoding *size* bytes of the Raw-Unicode-Escape "
"encoded string *s*. Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:766
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-Unicode-"
"Escape and return a Python string object. Return *NULL* if an exception was "
"raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:777
msgid ""
"Encode a Unicode object using Raw-Unicode-Escape and return the result as "
"Python string object. Error handling is \"strict\". Return *NULL* if an "
"exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:783
msgid "Latin-1 Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:785
msgid ""
"These are the Latin-1 codec APIs: Latin-1 corresponds to the first 256 "
"Unicode ordinals and only these are accepted by the codecs during encoding."
msgstr ""
#: ../Doc/c-api/unicode.rst:791
msgid ""
"Create a Unicode object by decoding *size* bytes of the Latin-1 encoded "
"string *s*. Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:801
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Latin-1 and "
"return a Python string object. Return *NULL* if an exception was raised by "
"the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:811
msgid ""
"Encode a Unicode object using Latin-1 and return the result as Python string "
"object. Error handling is \"strict\". Return *NULL* if an exception was "
"raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:817
msgid "ASCII Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:819
msgid ""
"These are the ASCII codec APIs. Only 7-bit ASCII data is accepted. All "
"other codes generate errors."
msgstr ""
#: ../Doc/c-api/unicode.rst:825
msgid ""
"Create a Unicode object by decoding *size* bytes of the ASCII encoded string "
"*s*. Return *NULL* if an exception was raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:835
msgid ""
"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using ASCII and "
"return a Python string object. Return *NULL* if an exception was raised by "
"the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:845
msgid ""
"Encode a Unicode object using ASCII and return the result as Python string "
"object. Error handling is \"strict\". Return *NULL* if an exception was "
"raised by the codec."
msgstr ""
#: ../Doc/c-api/unicode.rst:851
msgid "Character Map Codecs"
msgstr ""
#: ../Doc/c-api/unicode.rst:853
msgid ""
"This codec is special in that it can be used to implement many different "
"codecs (and this is in fact what was done to obtain most of the standard "
"codecs included in the :mod:`encodings` package). The codec uses mapping to "
"encode and decode characters."
msgstr ""
#: ../Doc/c-api/unicode.rst:858
msgid ""
"Decoding mappings must map single string characters to single Unicode "
"characters, integers (which are then interpreted as Unicode ordinals) or "
"``None`` (meaning \"undefined mapping\" and causing an error)."
msgstr ""
#: ../Doc/c-api/unicode.rst:862
msgid ""
"Encoding mappings must map single Unicode characters to single string "
"characters, integers (which are then interpreted as Latin-1 ordinals) or "
"``None`` (meaning \"undefined mapping\" and causing an error)."
msgstr ""
#: ../Doc/c-api/unicode.rst:866
msgid ""
"The mapping objects provided must only support the __getitem__ mapping "
"interface."