@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.11\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2023-04-07 14:12 +0000\n "
17
+ "POT-Creation-Date : 2023-04-28 14:13 +0000\n "
18
18
"PO-Revision-Date : 2021-06-28 00:50+0000\n "
19
19
"Last-Translator : Arihiro TAKASE, 2023\n "
20
20
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -282,7 +282,7 @@ msgstr ""
282
282
"*o* は Unicode オブジェクトでなければなりません (ただしチェックはしません)。"
283
283
284
284
#: ../../c-api/unicode.rst:219 ../../c-api/unicode.rst:229
285
- #: ../../c-api/unicode.rst:752
285
+ #: ../../c-api/unicode.rst:761
286
286
msgid ""
287
287
"Part of the old-style Unicode API, please migrate to using :c:func:"
288
288
"`PyUnicode_GET_LENGTH`."
@@ -881,11 +881,29 @@ msgstr ""
881
881
"ちょうど2つの引数を取ることを除いて、 :c:func:`PyUnicode_FromFormat` と同じ"
882
882
"です。"
883
883
884
- #: ../../c-api/unicode.rst:578
884
+ #: ../../c-api/unicode.rst:577
885
+ msgid ""
886
+ "Copy an instance of a Unicode subtype to a new true Unicode object if "
887
+ "necessary. If *obj* is already a true Unicode object (not a subtype), return "
888
+ "the reference with incremented refcount."
889
+ msgstr ""
890
+ "Unicode のサブタイプのインスタンスを、必要な場合は本物の Unicode オブジェクト"
891
+ "にコピーします。\n"
892
+ "*obj* が (サブタイプではない) 既に本物の Unicode オブジェクトだった場合は、参"
893
+ "照カウントを1つ増やした参照を返します。"
894
+
895
+ #: ../../c-api/unicode.rst:581
896
+ msgid ""
897
+ "Objects other than Unicode or its subtypes will cause a :exc:`TypeError`."
898
+ msgstr ""
899
+ "Unicode やそのサブタイプ以外のオブジェクトでは :exc:`TypeError` が引き起こさ"
900
+ "れます。"
901
+
902
+ #: ../../c-api/unicode.rst:587
885
903
msgid "Decode an encoded object *obj* to a Unicode object."
886
904
msgstr "エンコードされている *obj* を Unicode オブジェクトにデコードします。"
887
905
888
- #: ../../c-api/unicode.rst:580
906
+ #: ../../c-api/unicode.rst:589
889
907
msgid ""
890
908
":class:`bytes`, :class:`bytearray` and other :term:`bytes-like objects "
891
909
"<bytes-like object>` are decoded according to the given *encoding* and using "
@@ -898,27 +916,27 @@ msgstr ""
898
916
"これらの引数は両方とも ``NULL`` にでき、その場合この API はデフォルト値を使い"
899
917
"ます (詳しことは :ref:`builtincodecs` を参照してください)。"
900
918
901
- #: ../../c-api/unicode.rst:586
919
+ #: ../../c-api/unicode.rst:595
902
920
msgid ""
903
921
"All other objects, including Unicode objects, cause a :exc:`TypeError` to be "
904
922
"set."
905
923
msgstr ""
906
924
"その他のUnicodeオブジェクトを含むオブジェクトは :exc:`TypeError` 例外を引き起"
907
925
"こします。"
908
926
909
- #: ../../c-api/unicode.rst:589
927
+ #: ../../c-api/unicode.rst:598
910
928
msgid ""
911
929
"The API returns ``NULL`` if there was an error. The caller is responsible "
912
930
"for decref'ing the returned objects."
913
931
msgstr ""
914
932
"この API は、エラーが生じたときには ``NULL`` を返します。呼び出し側は返された"
915
933
"オブジェクトに対し参照カウンタを 1 つ減らす (decref) する責任があります。"
916
934
917
- #: ../../c-api/unicode.rst:595
935
+ #: ../../c-api/unicode.rst:604
918
936
msgid "Return the length of the Unicode object, in code points."
919
937
msgstr "Unicode オブジェクトの長さをコードポイントで返します。"
920
938
921
- #: ../../c-api/unicode.rst:606
939
+ #: ../../c-api/unicode.rst:615
922
940
msgid ""
923
941
"Copy characters from one Unicode object into another. This function "
924
942
"performs character conversion when necessary and falls back to :c:func:"
@@ -931,30 +949,30 @@ msgstr ""
931
949
"失敗のときには ``-1`` を返し、例外を設定します。そうでない場合は、コピーした"
932
950
"文字数を返します。"
933
951
934
- #: ../../c-api/unicode.rst:617
952
+ #: ../../c-api/unicode.rst:626
935
953
msgid ""
936
954
"Fill a string with a character: write *fill_char* into ``unicode[start:"
937
955
"start+length]``."
938
956
msgstr ""
939
957
"文字列を文字で埋めます: ``unicode[start:start+length]`` で *fill_char* を埋め"
940
958
"ることになります。"
941
959
942
- #: ../../c-api/unicode.rst:620
960
+ #: ../../c-api/unicode.rst:629
943
961
msgid ""
944
962
"Fail if *fill_char* is bigger than the string maximum character, or if the "
945
963
"string has more than 1 reference."
946
964
msgstr ""
947
965
"*fill_char* が文字列の最大文字よりも大きい場合や、文字列2つ以上の参照を持って"
948
966
"た場合は失敗します。"
949
967
950
- #: ../../c-api/unicode.rst:623
968
+ #: ../../c-api/unicode.rst:632
951
969
msgid ""
952
970
"Return the number of written character, or return ``-1`` and raise an "
953
971
"exception on error."
954
972
msgstr ""
955
973
"書き込んだ文字数を返すか、失敗のときには ``-1`` を返し例外を送出します。"
956
974
957
- #: ../../c-api/unicode.rst:632
975
+ #: ../../c-api/unicode.rst:641
958
976
msgid ""
959
977
"Write a character to a string. The string must have been created through :c:"
960
978
"func:`PyUnicode_New`. Since Unicode strings are supposed to be immutable, "
@@ -965,7 +983,7 @@ msgstr ""
965
983
"Unicode 文字列は不変とされているので、この文字列は共有されていたり、これまで"
966
984
"にハッシュ化されていてはいけません。"
967
985
968
- #: ../../c-api/unicode.rst:636
986
+ #: ../../c-api/unicode.rst:645
969
987
msgid ""
970
988
"This function checks that *unicode* is a Unicode object, that the index is "
971
989
"not out of bounds, and that the object can be modified safely (i.e. that it "
@@ -975,14 +993,14 @@ msgstr ""
975
993
"であること、オブジェクトが安全に変更できる (つまり参照カウントが1である) こと"
976
994
"をチェックします。"
977
995
978
- #: ../../c-api/unicode.rst:645
996
+ #: ../../c-api/unicode.rst:654
979
997
msgid ""
980
998
"Read a character from a string. This function checks that *unicode* is a "
981
999
"Unicode object and the index is not out of bounds, in contrast to :c:func:"
982
1000
"`PyUnicode_READ_CHAR`, which performs no error checking."
983
1001
msgstr ""
984
1002
985
- #: ../../c-api/unicode.rst:655
1003
+ #: ../../c-api/unicode.rst:664
986
1004
msgid ""
987
1005
"Return a substring of *str*, from character index *start* (included) to "
988
1006
"character index *end* (excluded). Negative indices are not supported."
@@ -991,7 +1009,7 @@ msgstr ""
991
1009
"点を含まず) までの部分文字列を返します。\n"
992
1010
"負のインデックスはサポートされていません。"
993
1011
994
- #: ../../c-api/unicode.rst:664
1012
+ #: ../../c-api/unicode.rst:673
995
1013
msgid ""
996
1014
"Copy the string *u* into a UCS4 buffer, including a null character, if "
997
1015
"*copy_null* is set. Returns ``NULL`` and sets an exception on error (in "
@@ -1004,7 +1022,7 @@ msgstr ""
1004
1022
"長さより短かった場合については、 :exc:`SystemError` が設定されます)。\n"
1005
1023
"成功したときは *buffer* を返します。"
1006
1024
1007
- #: ../../c-api/unicode.rst:674
1025
+ #: ../../c-api/unicode.rst:683
1008
1026
msgid ""
1009
1027
"Copy the string *u* into a new UCS4 buffer that is allocated using :c:func:"
1010
1028
"`PyMem_Malloc`. If this fails, ``NULL`` is returned with a :exc:"
@@ -1016,11 +1034,11 @@ msgstr ""
1016
1034
"これが失敗した場合は、 ``NULL`` を返し :exc:`MemoryError` をセットします。\n"
1017
1035
"返されたバッファは必ず null コードポイントが追加されています。"
1018
1036
1019
- #: ../../c-api/unicode.rst:683
1037
+ #: ../../c-api/unicode.rst:692
1020
1038
msgid "Deprecated Py_UNICODE APIs"
1021
1039
msgstr "廃止予定の Py_UNICODE API群"
1022
1040
1023
- #: ../../c-api/unicode.rst:687
1041
+ #: ../../c-api/unicode.rst:696
1024
1042
msgid ""
1025
1043
"These API functions are deprecated with the implementation of :pep:`393`. "
1026
1044
"Extension modules can continue using them, as they will not be removed in "
@@ -1031,7 +1049,7 @@ msgstr ""
1031
1049
"れないため、拡張モジュールはこれらの関数を引き続き使えますが、これらの関数の"
1032
1050
"使用はパフォーマンスとメモリに影響があることを念頭に置いてください。"
1033
1051
1034
- #: ../../c-api/unicode.rst:694
1052
+ #: ../../c-api/unicode.rst:703
1035
1053
msgid ""
1036
1054
"Create a Unicode object from the Py_UNICODE buffer *u* of the given size. "
1037
1055
"*u* may be ``NULL`` which causes the contents to be undefined. It is the "
@@ -1044,7 +1062,7 @@ msgstr ""
1044
1062
"バッファに必要な情報を埋めるのはユーザの責任です。\n"
1045
1063
"バッファの内容は新たなオブジェクトにコピーされます。"
1046
1064
1047
- #: ../../c-api/unicode.rst:699
1065
+ #: ../../c-api/unicode.rst:708
1048
1066
msgid ""
1049
1067
"If the buffer is not ``NULL``, the return value might be a shared object. "
1050
1068
"Therefore, modification of the resulting Unicode object is only allowed when "
@@ -1055,7 +1073,7 @@ msgstr ""
1055
1073
"従って、この関数が返す Unicode オブジェクトを変更してよいのは *u* が "
1056
1074
"``NULL`` のときだけです。"
1057
1075
1058
- #: ../../c-api/unicode.rst:703
1076
+ #: ../../c-api/unicode.rst:712
1059
1077
msgid ""
1060
1078
"If the buffer is ``NULL``, :c:func:`PyUnicode_READY` must be called once the "
1061
1079
"string content has been filled before using any of the access macros such "
@@ -1065,14 +1083,14 @@ msgstr ""
1065
1083
"`PyUnicode_KIND` のようなアクセスマクロを使う前に :c:func:`PyUnicode_READY` "
1066
1084
"を呼び出さなければなりません。"
1067
1085
1068
- #: ../../c-api/unicode.rst:710
1086
+ #: ../../c-api/unicode.rst:719
1069
1087
msgid ""
1070
1088
"Part of the old-style Unicode API, please migrate to using :c:func:"
1071
1089
"`PyUnicode_FromKindAndData`, :c:func:`PyUnicode_FromWideChar`, or :c:func:"
1072
1090
"`PyUnicode_New`."
1073
1091
msgstr ""
1074
1092
1075
- #: ../../c-api/unicode.rst:715
1093
+ #: ../../c-api/unicode.rst:724
1076
1094
msgid ""
1077
1095
"Return a read-only pointer to the Unicode object's internal :c:type:"
1078
1096
"`Py_UNICODE` buffer, or ``NULL`` on error. This will create the :c:expr:"
@@ -1083,14 +1101,14 @@ msgid ""
1083
1101
"functions."
1084
1102
msgstr ""
1085
1103
1086
- #: ../../c-api/unicode.rst:726 ../../c-api/unicode.rst:742
1104
+ #: ../../c-api/unicode.rst:735 ../../c-api/unicode.rst:751
1087
1105
msgid ""
1088
1106
"Part of the old-style Unicode API, please migrate to using :c:func:"
1089
1107
"`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsWideChar`, :c:func:"
1090
1108
"`PyUnicode_ReadChar` or similar new APIs."
1091
1109
msgstr ""
1092
1110
1093
- #: ../../c-api/unicode.rst:731
1111
+ #: ../../c-api/unicode.rst:740
1094
1112
msgid ""
1095
1113
"Like :c:func:`PyUnicode_AsUnicode`, but also saves the :c:func:`Py_UNICODE` "
1096
1114
"array length (excluding the extra null terminator) in *size*. Note that the "
@@ -1099,32 +1117,14 @@ msgid ""
1099
1117
"functions."
1100
1118
msgstr ""
1101
1119
1102
- #: ../../c-api/unicode.rst:747
1120
+ #: ../../c-api/unicode.rst:756
1103
1121
msgid ""
1104
1122
"Return the size of the deprecated :c:type:`Py_UNICODE` representation, in "
1105
1123
"code units (this includes surrogate pairs as 2 units)."
1106
1124
msgstr ""
1107
1125
"非推奨の :c:type:`Py_UNICODE` 表現形式のサイズをコード単位で返します (サロ"
1108
1126
"ゲートペアを2つとしています)。"
1109
1127
1110
- #: ../../c-api/unicode.rst:757
1111
- msgid ""
1112
- "Copy an instance of a Unicode subtype to a new true Unicode object if "
1113
- "necessary. If *obj* is already a true Unicode object (not a subtype), return "
1114
- "the reference with incremented refcount."
1115
- msgstr ""
1116
- "Unicode のサブタイプのインスタンスを、必要な場合は本物の Unicode オブジェクト"
1117
- "にコピーします。\n"
1118
- "*obj* が (サブタイプではない) 既に本物の Unicode オブジェクトだった場合は、参"
1119
- "照カウントを1つ増やした参照を返します。"
1120
-
1121
- #: ../../c-api/unicode.rst:761
1122
- msgid ""
1123
- "Objects other than Unicode or its subtypes will cause a :exc:`TypeError`."
1124
- msgstr ""
1125
- "Unicode やそのサブタイプ以外のオブジェクトでは :exc:`TypeError` が引き起こさ"
1126
- "れます。"
1127
-
1128
1128
#: ../../c-api/unicode.rst:765
1129
1129
msgid "Locale Encoding"
1130
1130
msgstr "ロケールエンコーディング"
0 commit comments