@ttsc/win32-arm64 0.33.1 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/go/VERSION +2 -2
- package/bin/go/bin/go.exe +0 -0
- package/bin/go/bin/gofmt.exe +0 -0
- package/bin/go/lib/time/update.bash +2 -2
- package/bin/go/lib/time/zoneinfo.zip +0 -0
- package/bin/go/pkg/include/asm_ppc64x.h +0 -16
- package/bin/go/pkg/tool/windows_arm64/asm.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/cgo.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/compile.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/cover.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/fix.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/link.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/preprofile.exe +0 -0
- package/bin/go/pkg/tool/windows_arm64/vet.exe +0 -0
- package/bin/go/src/archive/tar/reader.go +2 -1
- package/bin/go/src/archive/zip/reader.go +5 -29
- package/bin/go/src/archive/zip/struct.go +5 -6
- package/bin/go/src/archive/zip/writer.go +120 -60
- package/bin/go/src/bufio/bufio.go +1 -1
- package/bin/go/src/bytes/buffer.go +3 -3
- package/bin/go/src/bytes/bytes.go +45 -25
- package/bin/go/src/compress/flate/deflate.go +512 -363
- package/bin/go/src/compress/flate/deflatefast.go +156 -262
- package/bin/go/src/compress/flate/dict_decoder.go +1 -4
- package/bin/go/src/compress/flate/huffman_bit_writer.go +673 -250
- package/bin/go/src/compress/flate/huffman_code.go +164 -92
- package/bin/go/src/compress/flate/level1.go +195 -0
- package/bin/go/src/compress/flate/level2.go +190 -0
- package/bin/go/src/compress/flate/level3.go +228 -0
- package/bin/go/src/compress/flate/level4.go +200 -0
- package/bin/go/src/compress/flate/level5.go +287 -0
- package/bin/go/src/compress/flate/level6.go +297 -0
- package/bin/go/src/compress/flate/load_store.go +43 -0
- package/bin/go/src/compress/flate/regmask_amd64.go +9 -0
- package/bin/go/src/compress/flate/regmask_other.go +11 -0
- package/bin/go/src/compress/flate/token.go +238 -26
- package/bin/go/src/compress/gzip/gzip.go +8 -0
- package/bin/go/src/compress/zlib/writer.go +12 -0
- package/bin/go/src/context/context.go +6 -5
- package/bin/go/src/crypto/cipher/gcm.go +0 -4
- package/bin/go/src/crypto/crypto.go +27 -4
- package/bin/go/src/crypto/des/const.go +1 -1
- package/bin/go/src/crypto/ecdsa/ecdsa.go +21 -4
- package/bin/go/src/crypto/ed25519/ed25519.go +13 -0
- package/bin/go/src/crypto/internal/boring/aes.go +2 -3
- package/bin/go/src/crypto/internal/cryptotest/aead.go +53 -0
- package/bin/go/src/crypto/internal/cryptotest/boundary.go +34 -0
- package/bin/go/src/crypto/internal/cryptotest/boundary_compat.go +16 -0
- package/bin/go/src/crypto/internal/cryptotest/fetchmodule.go +9 -3
- package/bin/go/src/crypto/internal/cryptotest/fips140.go +62 -3
- package/bin/go/src/crypto/internal/cryptotest/hash.go +14 -0
- package/bin/go/src/crypto/internal/cryptotest/wycheproof/_schema/go.mod +19 -0
- package/bin/go/src/crypto/internal/cryptotest/wycheproof/_schema/go.sum +27 -0
- package/bin/go/src/crypto/internal/cryptotest/wycheproof/_schema/schema_gen.go +151 -0
- package/bin/go/src/crypto/internal/cryptotest/wycheproof/schema.go +9792 -0
- package/bin/go/src/crypto/internal/cryptotest/wycheproof/schemaversion.go +11 -0
- package/bin/go/src/crypto/internal/cryptotest/wycheproof/wycheproof.go +165 -0
- package/bin/go/src/crypto/internal/cryptotest/x509limbo/_schema/go.mod +14 -0
- package/bin/go/src/crypto/internal/cryptotest/x509limbo/_schema/go.sum +25 -0
- package/bin/go/src/crypto/internal/cryptotest/x509limbo/_schema/schema_gen.go +125 -0
- package/bin/go/src/crypto/internal/cryptotest/x509limbo/schema.go +591 -0
- package/bin/go/src/crypto/internal/cryptotest/x509limbo/schemaversion.go +14 -0
- package/bin/go/src/crypto/internal/fips140/aes/_asm/ctr/go.mod +1 -1
- package/bin/go/src/crypto/internal/fips140/aes/_asm/standard/go.mod +1 -1
- package/bin/go/src/crypto/internal/fips140/aes/gcm/_asm/gcm/gcm_amd64_asm.go +36 -32
- package/bin/go/src/crypto/internal/fips140/aes/gcm/_asm/gcm/go.mod +5 -5
- package/bin/go/src/crypto/internal/fips140/aes/gcm/_asm/gcm/go.sum +8 -6
- package/bin/go/src/crypto/internal/fips140/aes/gcm/gcm_amd64.s +29 -17
- package/bin/go/src/crypto/internal/fips140/aes/gcm/gcm_arm64.s +73 -72
- package/bin/go/src/crypto/internal/fips140/aes/gcm/ghash.go +140 -124
- package/bin/go/src/crypto/internal/fips140/bigmod/nat.go +18 -0
- package/bin/go/src/crypto/internal/fips140/check/checktest/asm_loong64.s +23 -0
- package/bin/go/src/crypto/internal/fips140/check/checktest/asm_none.go +1 -1
- package/bin/go/src/crypto/internal/fips140/check/checktest/asm_stub.go +1 -1
- package/bin/go/src/crypto/internal/fips140/drbg/rand.go +12 -4
- package/bin/go/src/crypto/internal/fips140/ecdsa/ecdsa.go +17 -10
- package/bin/go/src/crypto/internal/fips140/edwards25519/field/_asm/fe_amd64_asm.go +0 -90
- package/bin/go/src/crypto/internal/fips140/edwards25519/field/fe.go +64 -97
- package/bin/go/src/crypto/internal/fips140/edwards25519/field/fe_amd64.go +0 -5
- package/bin/go/src/crypto/internal/fips140/edwards25519/field/fe_amd64.s +0 -167
- package/bin/go/src/crypto/internal/fips140/edwards25519/field/fe_amd64_noasm.go +0 -2
- package/bin/go/src/crypto/internal/fips140/edwards25519/field/fe_generic.go +57 -1
- package/bin/go/src/crypto/internal/fips140/edwards25519/scalarmult.go +3 -2
- package/bin/go/src/crypto/internal/fips140/mldsa/mldsa.go +31 -25
- package/bin/go/src/crypto/internal/fips140/mldsa/semiexpanded.go +2 -2
- package/bin/go/src/crypto/internal/fips140/nistec/_asm/go.mod +4 -4
- package/bin/go/src/crypto/internal/fips140/nistec/_asm/go.sum +6 -0
- package/bin/go/src/crypto/internal/fips140/nistec/_asm/p256_asm.go +1 -613
- package/bin/go/src/crypto/internal/fips140/nistec/p256.go +2 -2
- package/bin/go/src/crypto/internal/fips140/nistec/p256_asm.go +7 -6
- package/bin/go/src/crypto/internal/fips140/nistec/p256_asm_amd64.s +0 -503
- package/bin/go/src/crypto/internal/fips140/nistec/p256_asm_arm64.s +4 -429
- package/bin/go/src/crypto/internal/fips140/nistec/p256_ordinv.go +511 -47
- package/bin/go/src/crypto/internal/fips140/pbkdf2/pbkdf2.go +1 -1
- package/bin/go/src/crypto/internal/fips140/rsa/keygen.go +48 -46
- package/bin/go/src/crypto/internal/fips140/rsa/largeexponent.go +365 -0
- package/bin/go/src/crypto/internal/fips140/rsa/pkcs1v15.go +27 -0
- package/bin/go/src/crypto/internal/fips140/sha256/_asm/go.mod +1 -1
- package/bin/go/src/crypto/internal/fips140/sha3/_asm/go.mod +1 -1
- package/bin/go/src/crypto/internal/fips140/sha512/_asm/go.mod +1 -1
- package/bin/go/src/crypto/internal/fips140/subtle/constant_time.go +1 -1
- package/bin/go/src/crypto/internal/fips140/subtle/xor_asm.go +1 -1
- package/bin/go/src/crypto/internal/fips140/subtle/xor_riscv64.go +18 -0
- package/bin/go/src/crypto/internal/fips140/subtle/xor_riscv64.s +33 -2
- package/bin/go/src/crypto/internal/fips140deps/cpu/cpu.go +2 -0
- package/bin/go/src/crypto/internal/fips140deps/time/time.go +7 -4
- package/bin/go/src/crypto/internal/fips140only/fips140only.go +0 -7
- package/bin/go/src/crypto/internal/fips140only/random_fips140v1.0.go +17 -0
- package/bin/go/src/crypto/internal/fips140only/random_fips140v1.28.go +16 -0
- package/bin/go/src/crypto/internal/fips140test/acvp_capabilities_fips140v1.28.json +86 -0
- package/bin/go/src/crypto/internal/fips140test/acvp_test_fips140v1.28.config.json +58 -0
- package/bin/go/src/crypto/internal/rand/rand.go +14 -14
- package/bin/go/src/crypto/internal/rand/random_fips140v1.0.go +20 -0
- package/bin/go/src/crypto/internal/rand/random_fips140v1.28.go +19 -0
- package/bin/go/src/crypto/mldsa/mldsa.go +97 -0
- package/bin/go/src/crypto/mldsa/mldsa_fips140v1.0.go +116 -0
- package/bin/go/src/crypto/mldsa/mldsa_fips140v1.26.go +226 -0
- package/bin/go/src/crypto/mlkem/mlkem.go +8 -2
- package/bin/go/src/crypto/rsa/fips.go +26 -8
- package/bin/go/src/crypto/rsa/pkcs1v15.go +2 -2
- package/bin/go/src/crypto/rsa/rsa.go +25 -2
- package/bin/go/src/crypto/sha1/sha1block_decl.go +1 -1
- package/bin/go/src/crypto/sha1/sha1block_generic.go +1 -1
- package/bin/go/src/crypto/sha1/sha1block_loong64.s +24 -8
- package/bin/go/src/crypto/sha1/sha1block_riscv64.s +225 -0
- package/bin/go/src/crypto/sha3/sha3.go +3 -2
- package/bin/go/src/crypto/tls/alert.go +2 -0
- package/bin/go/src/crypto/tls/auth.go +31 -0
- package/bin/go/src/crypto/tls/bogo_config.json +12 -23
- package/bin/go/src/crypto/tls/cipher_suites.go +3 -11
- package/bin/go/src/crypto/tls/common.go +106 -59
- package/bin/go/src/crypto/tls/common_string.go +18 -5
- package/bin/go/src/crypto/tls/conn.go +33 -35
- package/bin/go/src/crypto/tls/defaults.go +26 -20
- package/bin/go/src/crypto/tls/defaults_fips140.go +9 -0
- package/bin/go/src/crypto/tls/ech.go +9 -4
- package/bin/go/src/crypto/tls/generate_cert.go +8 -2
- package/bin/go/src/crypto/tls/handshake_client.go +17 -17
- package/bin/go/src/crypto/tls/handshake_client_tls13.go +8 -3
- package/bin/go/src/crypto/tls/handshake_server.go +26 -19
- package/bin/go/src/crypto/tls/handshake_server_tls13.go +8 -5
- package/bin/go/src/crypto/tls/key_agreement.go +5 -1
- package/bin/go/src/crypto/tls/key_schedule.go +42 -17
- package/bin/go/src/crypto/tls/prf.go +1 -1
- package/bin/go/src/crypto/tls/quic.go +6 -7
- package/bin/go/src/crypto/tls/tls.go +25 -29
- package/bin/go/src/crypto/x509/cert_pool.go +8 -4
- package/bin/go/src/crypto/x509/constraints.go +5 -0
- package/bin/go/src/crypto/x509/parser.go +101 -15
- package/bin/go/src/crypto/x509/pkcs8.go +45 -4
- package/bin/go/src/crypto/x509/pkix/pkix.go +33 -9
- package/bin/go/src/crypto/x509/root.go +113 -0
- package/bin/go/src/crypto/x509/root_darwin.go +8 -4
- package/bin/go/src/crypto/x509/root_plan9.go +2 -23
- package/bin/go/src/crypto/x509/root_unix.go +0 -97
- package/bin/go/src/crypto/x509/root_windows.go +8 -3
- package/bin/go/src/crypto/x509/verify.go +43 -4
- package/bin/go/src/crypto/x509/x509.go +169 -30
- package/bin/go/src/database/sql/closemu.go +119 -0
- package/bin/go/src/database/sql/convert.go +63 -4
- package/bin/go/src/database/sql/driver/driver.go +26 -0
- package/bin/go/src/database/sql/driver/types.go +4 -0
- package/bin/go/src/database/sql/internal/sql.go +22 -0
- package/bin/go/src/database/sql/sql.go +89 -40
- package/bin/go/src/debug/buildinfo/buildinfo.go +0 -13
- package/bin/go/src/debug/dwarf/buf.go +7 -1
- package/bin/go/src/debug/dwarf/class_string.go +3 -2
- package/bin/go/src/debug/elf/file.go +80 -50
- package/bin/go/src/debug/elf/reader.go +1 -1
- package/bin/go/src/debug/gosym/symtab.go +26 -30
- package/bin/go/src/debug/macho/file.go +2 -2
- package/bin/go/src/debug/macho/reloctype_string.go +12 -8
- package/bin/go/src/debug/pe/file.go +6 -3
- package/bin/go/src/encoding/base32/base32.go +29 -31
- package/bin/go/src/encoding/base64/base64.go +24 -29
- package/bin/go/src/encoding/gob/decode.go +7 -1
- package/bin/go/src/encoding/gob/type.go +6 -6
- package/bin/go/src/encoding/hex/hex.go +6 -6
- package/bin/go/src/encoding/json/decode.go +4 -3
- package/bin/go/src/encoding/json/encode.go +1 -2
- package/bin/go/src/encoding/json/fold.go +1 -1
- package/bin/go/src/encoding/json/internal/internal.go +11 -1
- package/bin/go/src/encoding/json/internal/jsonflags/flags.go +17 -9
- package/bin/go/src/encoding/json/internal/jsonopts/options.go +52 -37
- package/bin/go/src/encoding/json/internal/jsonopts/options_format.go +124 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/canada_geometry.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/citm_catalog.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/golang_source.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/string_escaped.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/string_unicode.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/synthea_fhir.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/_embed/twitter_status.json.zst +0 -0
- package/bin/go/src/encoding/json/internal/jsontest/testdata.go +10 -4
- package/bin/go/src/encoding/json/internal/jsonwire/decode.go +13 -36
- package/bin/go/src/encoding/json/internal/jsonwire/encode.go +7 -7
- package/bin/go/src/encoding/json/internal/jsonwire/wire.go +30 -38
- package/bin/go/src/encoding/json/jsontext/decode.go +49 -14
- package/bin/go/src/encoding/json/jsontext/doc.go +6 -11
- package/bin/go/src/encoding/json/jsontext/encode.go +55 -39
- package/bin/go/src/encoding/json/jsontext/errors.go +34 -3
- package/bin/go/src/encoding/json/jsontext/export.go +14 -0
- package/bin/go/src/encoding/json/jsontext/options.go +8 -8
- package/bin/go/src/encoding/json/jsontext/quote.go +2 -2
- package/bin/go/src/encoding/json/jsontext/state.go +14 -14
- package/bin/go/src/encoding/json/jsontext/token.go +246 -101
- package/bin/go/src/encoding/json/jsontext/value.go +31 -16
- package/bin/go/src/encoding/json/stream.go +14 -2
- package/bin/go/src/encoding/json/v2/arshal.go +100 -114
- package/bin/go/src/encoding/json/v2/arshal_any.go +6 -5
- package/bin/go/src/encoding/json/v2/arshal_default.go +292 -189
- package/bin/go/src/encoding/json/v2/{arshal_inlined.go → arshal_embedded.go} +14 -14
- package/bin/go/src/encoding/json/v2/arshal_funcs.go +28 -47
- package/bin/go/src/encoding/json/v2/arshal_methods.go +98 -29
- package/bin/go/src/encoding/json/v2/arshal_time.go +33 -13
- package/bin/go/src/encoding/json/v2/doc.go +40 -55
- package/bin/go/src/encoding/json/v2/errors.go +29 -9
- package/bin/go/src/encoding/json/v2/fields.go +83 -81
- package/bin/go/src/encoding/json/v2/intern.go +2 -2
- package/bin/go/src/encoding/json/v2/options.go +57 -41
- package/bin/go/src/encoding/json/v2_decode.go +21 -9
- package/bin/go/src/encoding/json/v2_encode.go +21 -10
- package/bin/go/src/encoding/json/v2_indent.go +2 -0
- package/bin/go/src/encoding/json/v2_inject.go +7 -4
- package/bin/go/src/encoding/json/v2_options.go +37 -30
- package/bin/go/src/encoding/json/v2_scanner.go +6 -1
- package/bin/go/src/encoding/json/v2_stream.go +49 -14
- package/bin/go/src/encoding/pem/pem.go +6 -2
- package/bin/go/src/fmt/doc.go +11 -1
- package/bin/go/src/fmt/print.go +69 -82
- package/bin/go/src/go/ast/ast.go +4 -4
- package/bin/go/src/go/ast/filter.go +1 -1
- package/bin/go/src/go/ast/scope.go +2 -2
- package/bin/go/src/go/build/build.go +1 -1
- package/bin/go/src/go/build/constraint/vers.go +4 -1
- package/bin/go/src/go/build/read.go +2 -2
- package/bin/go/src/go/constant/kind_string.go +3 -2
- package/bin/go/src/go/constant/value.go +26 -4
- package/bin/go/src/go/doc/comment/std.go +1 -0
- package/bin/go/src/go/importer/importer.go +4 -3
- package/bin/go/src/go/internal/gccgoimporter/parser.go +2 -0
- package/bin/go/src/go/internal/gcimporter/ureader.go +141 -56
- package/bin/go/src/go/parser/parser.go +11 -22
- package/bin/go/src/go/printer/math.go +28 -0
- package/bin/go/src/go/printer/nodes.go +28 -11
- package/bin/go/src/go/printer/printer.go +3 -1
- package/bin/go/src/go/scanner/errors.go +2 -0
- package/bin/go/src/go/scanner/scanner.go +40 -28
- package/bin/go/src/go/token/position.go +7 -16
- package/bin/go/src/go/types/alias.go +0 -18
- package/bin/go/src/go/types/api.go +4 -10
- package/bin/go/src/go/types/api_predicates.go +2 -2
- package/bin/go/src/go/types/assignments.go +44 -38
- package/bin/go/src/go/types/builtins.go +199 -168
- package/bin/go/src/go/types/call.go +155 -138
- package/bin/go/src/go/types/check.go +0 -83
- package/bin/go/src/go/types/const.go +22 -10
- package/bin/go/src/go/types/conversions.go +19 -19
- package/bin/go/src/go/types/cycles.go +29 -42
- package/bin/go/src/go/types/decl.go +33 -81
- package/bin/go/src/go/types/expr.go +191 -183
- package/bin/go/src/go/types/gotype.go +1 -0
- package/bin/go/src/go/types/hash.go +309 -0
- package/bin/go/src/go/types/index.go +91 -61
- package/bin/go/src/go/types/infer.go +11 -11
- package/bin/go/src/go/types/instantiate.go +27 -15
- package/bin/go/src/go/types/interface.go +2 -2
- package/bin/go/src/go/types/literals.go +56 -32
- package/bin/go/src/go/types/lookup.go +31 -14
- package/bin/go/src/go/types/named.go +58 -54
- package/bin/go/src/go/types/object.go +4 -3
- package/bin/go/src/go/types/operand.go +50 -34
- package/bin/go/src/go/types/range.go +19 -16
- package/bin/go/src/go/types/recording.go +24 -7
- package/bin/go/src/go/types/resolver.go +16 -18
- package/bin/go/src/go/types/scope.go +1 -15
- package/bin/go/src/go/types/selection.go +3 -1
- package/bin/go/src/go/types/signature.go +10 -11
- package/bin/go/src/go/types/stmt.go +34 -28
- package/bin/go/src/go/types/subst.go +82 -5
- package/bin/go/src/go/types/trie.go +93 -0
- package/bin/go/src/go/types/typelists.go +28 -0
- package/bin/go/src/go/types/typestring.go +5 -9
- package/bin/go/src/go/types/typexpr.go +17 -28
- package/bin/go/src/go/types/unify.go +12 -3
- package/bin/go/src/go/types/universe.go +12 -40
- package/bin/go/src/go/types/version.go +4 -0
- package/bin/go/src/go.mod +5 -5
- package/bin/go/src/go.sum +8 -8
- package/bin/go/src/hash/maphash/hasher.go +139 -0
- package/bin/go/src/hash/maphash/maphash.go +59 -4
- package/bin/go/src/html/template/attr_string.go +3 -2
- package/bin/go/src/html/template/delim_string.go +3 -2
- package/bin/go/src/html/template/element_string.go +3 -2
- package/bin/go/src/html/template/jsctx_string.go +3 -2
- package/bin/go/src/html/template/state_string.go +3 -2
- package/bin/go/src/html/template/template.go +7 -4
- package/bin/go/src/html/template/transition.go +1 -1
- package/bin/go/src/html/template/urlpart_string.go +3 -2
- package/bin/go/src/image/format.go +9 -0
- package/bin/go/src/image/gif/reader.go +18 -0
- package/bin/go/src/image/jpeg/huffman.go +22 -3
- package/bin/go/src/image/jpeg/reader.go +54 -29
- package/bin/go/src/image/jpeg/scan.go +68 -38
- package/bin/go/src/image/png/writer.go +8 -0
- package/bin/go/src/index/suffixarray/suffixarray.go +14 -6
- package/bin/go/src/internal/abi/abi_generic.go +1 -1
- package/bin/go/src/internal/abi/abi_s390x.go +0 -2
- package/bin/go/src/internal/abi/compiletype.go +30 -0
- package/bin/go/src/internal/abi/iface.go +13 -1
- package/bin/go/src/internal/abi/map.go +21 -3
- package/bin/go/src/internal/abi/type.go +136 -27
- package/bin/go/src/internal/buildcfg/exp.go +8 -8
- package/bin/go/src/internal/buildcfg/zbootstrap.go +1 -1
- package/bin/go/src/internal/bytealg/bytealg.go +16 -16
- package/bin/go/src/internal/bytealg/compare_s390x.s +0 -24
- package/bin/go/src/internal/bytealg/equal_s390x.s +0 -18
- package/bin/go/src/internal/bytealg/indexbyte_arm64.s +28 -0
- package/bin/go/src/internal/bytealg/indexbyte_s390x.s +0 -33
- package/bin/go/src/internal/coverage/encodemeta/encode.go +1 -1
- package/bin/go/src/internal/cpu/cpu.go +22 -7
- package/bin/go/src/internal/cpu/cpu_arm64.go +8 -1
- package/bin/go/src/internal/cpu/cpu_arm64.s +7 -0
- package/bin/go/src/internal/cpu/cpu_arm64_darwin.go +2 -0
- package/bin/go/src/internal/cpu/cpu_arm64_freebsd.go +2 -1
- package/bin/go/src/internal/cpu/cpu_arm64_hwcap.go +2 -0
- package/bin/go/src/internal/cpu/cpu_arm64_openbsd.go +6 -1
- package/bin/go/src/internal/cpu/cpu_arm64_other.go +1 -1
- package/bin/go/src/internal/cpu/cpu_arm64_windows.go +26 -0
- package/bin/go/src/internal/cpu/cpu_loong64.go +14 -2
- package/bin/go/src/internal/cpu/cpu_riscv64.go +10 -0
- package/bin/go/src/internal/cpu/cpu_riscv64_linux.go +21 -0
- package/bin/go/src/internal/cpu/cpu_windows.go +20 -0
- package/bin/go/src/internal/cpu/cpu_x86.go +2 -0
- package/bin/go/src/internal/filepathlite/path_windows.go +30 -17
- package/bin/go/src/internal/fuzz/fuzz.go +5 -1
- package/bin/go/src/internal/fuzz/mutator.go +2 -2
- package/bin/go/src/internal/fuzz/worker.go +1 -1
- package/bin/go/src/internal/gate/gate.go +76 -0
- package/bin/go/src/internal/godebugs/table.go +29 -10
- package/bin/go/src/internal/goexperiment/exp_mapsplitgroup_off.go +8 -0
- package/bin/go/src/internal/goexperiment/exp_mapsplitgroup_on.go +8 -0
- package/bin/go/src/internal/goexperiment/flags.go +5 -3
- package/bin/go/src/internal/goversion/goversion.go +1 -1
- package/bin/go/src/internal/lazyregexp/lazyre.go +4 -0
- package/bin/go/src/internal/nettest/conn.go +437 -0
- package/bin/go/src/internal/nettest/listener.go +148 -0
- package/bin/go/src/internal/nettest/packetconn.go +250 -0
- package/bin/go/src/internal/nettest/queue.go +33 -0
- package/bin/go/src/internal/pkgbits/syncmarker_string.go +4 -4
- package/bin/go/src/internal/pkgbits/version.go +27 -1
- package/bin/go/src/internal/platform/supported.go +8 -10
- package/bin/go/src/internal/platform/zosarch.go +1 -3
- package/bin/go/src/internal/poll/fd_mutex.go +49 -10
- package/bin/go/src/internal/poll/fd_unix.go +6 -1
- package/bin/go/src/internal/poll/fd_windows.go +175 -191
- package/bin/go/src/internal/poll/fd_writev_libc.go +1 -1
- package/bin/go/src/internal/poll/fd_writev_unix.go +1 -1
- package/bin/go/src/internal/poll/file_plan9.go +4 -4
- package/bin/go/src/internal/poll/sendfile_windows.go +1 -3
- package/bin/go/src/internal/poll/splice_linux.go +1 -1
- package/bin/go/src/internal/profile/encode.go +1 -1
- package/bin/go/src/internal/profile/profile.go +5 -3
- package/bin/go/src/internal/profilerecord/profilerecord.go +2 -2
- package/bin/go/src/internal/reflectlite/value.go +1 -15
- package/bin/go/src/internal/runtime/atomic/atomic_386.go +0 -6
- package/bin/go/src/internal/runtime/atomic/atomic_amd64.go +0 -6
- package/bin/go/src/internal/runtime/atomic/atomic_andor_generic.go +0 -11
- package/bin/go/src/internal/runtime/atomic/atomic_arm.go +0 -6
- package/bin/go/src/internal/runtime/atomic/atomic_loong64.go +2 -2
- package/bin/go/src/internal/runtime/atomic/atomic_loong64.s +22 -11
- package/bin/go/src/internal/runtime/atomic/atomic_mipsx.go +0 -10
- package/bin/go/src/internal/runtime/atomic/atomic_riscv64.s +4 -4
- package/bin/go/src/internal/runtime/atomic/atomic_s390x.go +0 -6
- package/bin/go/src/internal/runtime/atomic/atomic_wasm.go +0 -31
- package/bin/go/src/internal/runtime/atomic/linkname.go +34 -0
- package/bin/go/src/internal/runtime/exithook/hooks.go +0 -4
- package/bin/go/src/internal/runtime/gc/scan/expand_amd64.s +2285 -2285
- package/bin/go/src/internal/runtime/gc/scan/mkasm.go +1 -1
- package/bin/go/src/internal/runtime/gc/scan/scan_amd64.go +2 -1
- package/bin/go/src/internal/runtime/gc/scan/scan_amd64.s +4 -2
- package/bin/go/src/internal/runtime/maps/group.go +22 -13
- package/bin/go/src/internal/runtime/maps/map.go +35 -14
- package/bin/go/src/internal/runtime/maps/memhash_386.s +408 -0
- package/bin/go/src/internal/runtime/maps/memhash_aes.go +38 -0
- package/bin/go/src/internal/runtime/maps/memhash_aes_asm.go +24 -0
- package/bin/go/src/internal/runtime/maps/memhash_aes_simd.go +49 -0
- package/bin/go/src/internal/runtime/maps/memhash_align_check.go +10 -0
- package/bin/go/src/internal/runtime/maps/memhash_align_nocheck.go +16 -0
- package/bin/go/src/internal/runtime/maps/memhash_amd64.s +426 -0
- package/bin/go/src/internal/runtime/maps/memhash_arm64.s +366 -0
- package/bin/go/src/internal/runtime/maps/memhash_noaes.go +43 -0
- package/bin/go/src/internal/runtime/maps/memhash_nosimd_amd64.s +33 -0
- package/bin/go/src/internal/runtime/maps/runtime.go +37 -88
- package/bin/go/src/internal/runtime/maps/runtime_alg.go +93 -0
- package/bin/go/src/internal/runtime/maps/runtime_fast32.go +111 -97
- package/bin/go/src/internal/runtime/maps/runtime_fast64.go +137 -98
- package/bin/go/src/internal/runtime/maps/runtime_faststr.go +96 -89
- package/bin/go/src/{runtime/hash32.go → internal/runtime/maps/runtime_hash32.go} +8 -10
- package/bin/go/src/{runtime/hash64.go → internal/runtime/maps/runtime_hash64.go} +8 -8
- package/bin/go/src/internal/runtime/maps/table.go +66 -3
- package/bin/go/src/internal/runtime/math/math.go +0 -21
- package/bin/go/src/internal/runtime/startlinetest/func_amd64.s +2 -1
- package/bin/go/src/internal/runtime/sys/dit_arm64.go +3 -0
- package/bin/go/src/internal/runtime/sys/dit_arm64.s +16 -3
- package/bin/go/src/internal/runtime/syscall/linux/asm_linux_s390x.s +0 -23
- package/bin/go/src/internal/runtime/syscall/windows/asm_windows_386.s +7 -4
- package/bin/go/src/internal/runtime/syscall/windows/asm_windows_amd64.s +10 -8
- package/bin/go/src/internal/runtime/syscall/windows/asm_windows_arm64.s +0 -1
- package/bin/go/src/internal/runtime/syscall/windows/defs_windows.go +4 -0
- package/bin/go/src/internal/runtime/syscall/windows/syscall_windows.go +7 -9
- package/bin/go/src/internal/strconv/atof.go +69 -42
- package/bin/go/src/internal/strconv/atoi.go +1 -0
- package/bin/go/src/internal/strconv/ftoa.go +329 -357
- package/bin/go/src/internal/strconv/itoa.go +53 -59
- package/bin/go/src/internal/strconv/pow10gen.go +15 -3
- package/bin/go/src/internal/strconv/pow10tab.go +670 -670
- package/bin/go/src/internal/strconv/uscale.go +290 -0
- package/bin/go/src/internal/stringslite/strings.go +14 -42
- package/bin/go/src/internal/syscall/unix/asm_openbsd.s +0 -2
- package/bin/go/src/internal/syscall/unix/at.go +1 -1
- package/bin/go/src/internal/syscall/unix/at_fstatat.go +1 -1
- package/bin/go/src/internal/syscall/unix/at_libc2.go +1 -1
- package/bin/go/src/internal/syscall/unix/at_openbsd.go +0 -2
- package/bin/go/src/internal/syscall/unix/faccessat_bsd.go +1 -1
- package/bin/go/src/internal/syscall/unix/faccessat_openbsd.go +0 -2
- package/bin/go/src/internal/syscall/windows/at_windows.go +5 -5
- package/bin/go/src/internal/syscall/windows/net_windows.go +1 -0
- package/bin/go/src/internal/syscall/windows/string_windows.go +6 -3
- package/bin/go/src/internal/syscall/windows/syscall_windows.go +2 -0
- package/bin/go/src/internal/syscall/windows/types_windows.go +89 -4
- package/bin/go/src/internal/syscall/windows/zsyscall_windows.go +7 -0
- package/bin/go/src/internal/testenv/testenv.go +24 -1
- package/bin/go/src/internal/trace/event.go +1 -1
- package/bin/go/src/internal/trace/tracev2/events.go +2 -0
- package/bin/go/src/internal/trace/traceviewer/pprof.go +1 -0
- package/bin/go/src/internal/types/errors/generrordocs.go +1 -1
- package/bin/go/src/io/fs/fs.go +4 -1
- package/bin/go/src/io/fs/glob.go +1 -1
- package/bin/go/src/io/fs/readdir.go +3 -3
- package/bin/go/src/io/fs/readfile.go +3 -3
- package/bin/go/src/io/fs/stat.go +1 -1
- package/bin/go/src/io/fs/sub.go +4 -2
- package/bin/go/src/iter/iter.go +2 -2
- package/bin/go/src/log/slog/handler.go +0 -1
- package/bin/go/src/log/slog/json_handler.go +7 -1
- package/bin/go/src/log/slog/logger.go +16 -0
- package/bin/go/src/log/slog/text_handler.go +10 -1
- package/bin/go/src/log/slog/value.go +1 -1
- package/bin/go/src/log/syslog/doc.go +5 -0
- package/bin/go/src/math/abs.go +1 -1
- package/bin/go/src/math/big/accuracy_string.go +4 -4
- package/bin/go/src/math/big/arith.go +1 -1
- package/bin/go/src/math/big/arith_loong64.s +2 -4
- package/bin/go/src/math/big/float.go +2 -0
- package/bin/go/src/math/big/ftoa.go +11 -5
- package/bin/go/src/math/big/int.go +84 -1
- package/bin/go/src/math/big/intconv.go +19 -4
- package/bin/go/src/math/big/internal/asmgen/loong64.go +2 -0
- package/bin/go/src/math/big/nat.go +68 -17
- package/bin/go/src/math/big/natdiv.go +8 -5
- package/bin/go/src/math/big/roundingmode_string.go +3 -2
- package/bin/go/src/math/copysign.go +1 -2
- package/bin/go/src/math/exp2_asm.go +1 -1
- package/bin/go/src/math/exp2_noasm.go +1 -1
- package/bin/go/src/math/exp_asm.go +1 -1
- package/bin/go/src/math/exp_loong64.s +4 -12
- package/bin/go/src/math/exp_noasm.go +1 -1
- package/bin/go/src/math/exp_riscv64.s +236 -0
- package/bin/go/src/math/nextafter.go +4 -2
- package/bin/go/src/math/pow10.go +1 -1
- package/bin/go/src/math/rand/v2/rand.go +14 -4
- package/bin/go/src/mime/type.go +3 -2
- package/bin/go/src/net/dial.go +10 -6
- package/bin/go/src/net/dnsclient_unix.go +37 -8
- package/bin/go/src/net/dnsconfig.go +6 -0
- package/bin/go/src/net/fd_plan9.go +13 -6
- package/bin/go/src/net/fd_unix.go +3 -7
- package/bin/go/src/net/fd_windows.go +4 -9
- package/bin/go/src/net/file_plan9.go +1 -1
- package/bin/go/src/net/file_posix.go +1 -5
- package/bin/go/src/net/http/client.go +21 -4
- package/bin/go/src/net/http/clientconn.go +20 -1
- package/bin/go/src/net/http/clone.go +1 -10
- package/bin/go/src/net/http/cookie.go +5 -6
- package/bin/go/src/net/http/cookiejar/jar.go +6 -4
- package/bin/go/src/net/http/fcgi/fcgi.go +1 -2
- package/bin/go/src/net/http/fs.go +8 -1
- package/bin/go/src/net/http/http.go +29 -12
- package/bin/go/src/net/http/http2.go +561 -0
- package/bin/go/src/net/http/httptest/server.go +305 -60
- package/bin/go/src/net/http/httptrace/trace.go +78 -27
- package/bin/go/src/net/http/httputil/reverseproxy.go +0 -30
- package/bin/go/src/net/http/internal/common.go +14 -0
- package/bin/go/src/net/http/internal/http2/api.go +161 -0
- package/bin/go/src/net/http/internal/http2/ascii.go +53 -0
- package/bin/go/src/net/http/internal/http2/ciphers.go +641 -0
- package/bin/go/src/net/http/internal/http2/client_conn_pool.go +285 -0
- package/bin/go/src/net/http/internal/http2/config.go +118 -0
- package/bin/go/src/net/http/internal/http2/databuffer.go +146 -0
- package/bin/go/src/net/http/internal/http2/errors.go +173 -0
- package/bin/go/src/net/http/internal/http2/flow.go +175 -0
- package/bin/go/src/net/http/internal/http2/frame.go +1905 -0
- package/bin/go/src/net/http/internal/http2/gotrack.go +181 -0
- package/bin/go/src/net/http/internal/http2/http2.go +403 -0
- package/bin/go/src/net/http/internal/http2/pipe.go +184 -0
- package/bin/go/src/net/http/internal/http2/server.go +3238 -0
- package/bin/go/src/net/http/internal/http2/transport.go +3267 -0
- package/bin/go/src/net/http/internal/http2/write.go +380 -0
- package/bin/go/src/net/http/internal/http2/writesched.go +289 -0
- package/bin/go/src/net/http/internal/http2/writesched_priority_rfc9218.go +224 -0
- package/bin/go/src/net/http/internal/http2/writesched_roundrobin.go +119 -0
- package/bin/go/src/net/http/internal/httpcommon/httpcommon.go +8 -0
- package/bin/go/src/net/http/internal/httpsfv/httpsfv.go +666 -0
- package/bin/go/src/net/http/internal/sniff.go +304 -0
- package/bin/go/src/net/http/omithttp2.go +28 -49
- package/bin/go/src/net/http/pprof/pprof.go +11 -17
- package/bin/go/src/net/http/request.go +30 -3
- package/bin/go/src/net/http/response.go +6 -2
- package/bin/go/src/net/http/server.go +366 -144
- package/bin/go/src/net/http/sniff.go +2 -289
- package/bin/go/src/net/http/transfer.go +64 -21
- package/bin/go/src/net/http/transport.go +288 -83
- package/bin/go/src/net/ip.go +4 -0
- package/bin/go/src/net/ipsock_plan9.go +4 -4
- package/bin/go/src/net/ipsock_posix.go +8 -2
- package/bin/go/src/net/lookup.go +10 -0
- package/bin/go/src/net/lookup_windows.go +1 -1
- package/bin/go/src/net/mail/message.go +8 -3
- package/bin/go/src/net/net.go +2 -0
- package/bin/go/src/net/netip/netip.go +68 -61
- package/bin/go/src/net/sock_posix.go +1 -4
- package/bin/go/src/net/textproto/reader.go +11 -3
- package/bin/go/src/net/udpsock_plan9.go +2 -7
- package/bin/go/src/net/unixsock.go +11 -3
- package/bin/go/src/net/url/url.go +33 -0
- package/bin/go/src/os/dir_darwin.go +7 -0
- package/bin/go/src/os/exec/exec.go +16 -2
- package/bin/go/src/os/exec.go +1 -0
- package/bin/go/src/os/file.go +8 -1
- package/bin/go/src/os/root_windows.go +5 -1
- package/bin/go/src/os/signal/doc.go +3 -2
- package/bin/go/src/os/signal/signal.go +18 -6
- package/bin/go/src/os/statat_unix.go +5 -1
- package/bin/go/src/path/filepath/path.go +4 -0
- package/bin/go/src/reflect/asm_s390x.s +0 -10
- package/bin/go/src/reflect/iter.go +13 -13
- package/bin/go/src/reflect/makefunc.go +2 -1
- package/bin/go/src/reflect/map.go +61 -18
- package/bin/go/src/reflect/type.go +63 -46
- package/bin/go/src/reflect/value.go +59 -16
- package/bin/go/src/regexp/exec.go +5 -5
- package/bin/go/src/regexp/regexp.go +382 -319
- package/bin/go/src/regexp/syntax/parse.go +19 -10
- package/bin/go/src/runtime/HACKING.md +19 -0
- package/bin/go/src/runtime/_mkmalloc/constants.go +6 -4
- package/bin/go/src/runtime/_mkmalloc/go.mod +1 -1
- package/bin/go/src/runtime/_mkmalloc/mkmalloc.go +405 -64
- package/bin/go/src/runtime/alg.go +21 -53
- package/bin/go/src/runtime/asm_386.s +11 -461
- package/bin/go/src/runtime/asm_amd64.s +30 -537
- package/bin/go/src/runtime/asm_arm.s +4 -39
- package/bin/go/src/runtime/asm_arm64.s +15 -428
- package/bin/go/src/runtime/asm_loong64.s +37 -47
- package/bin/go/src/runtime/asm_mips64x.s +15 -15
- package/bin/go/src/runtime/asm_mipsx.s +0 -15
- package/bin/go/src/runtime/asm_ppc64x.h +0 -16
- package/bin/go/src/runtime/asm_ppc64x.s +13 -59
- package/bin/go/src/runtime/asm_riscv64.s +30 -91
- package/bin/go/src/runtime/asm_s390x.s +49 -49
- package/bin/go/src/runtime/asm_wasm.s +0 -15
- package/bin/go/src/runtime/atomic_riscv64.s +1 -1
- package/bin/go/src/runtime/cgo/abi_riscv64.h +72 -0
- package/bin/go/src/runtime/cgo/asm_riscv64.s +7 -48
- package/bin/go/src/runtime/cgo/callbacks.go +0 -42
- package/bin/go/src/runtime/cgo/callbacks_unix.go +58 -0
- package/bin/go/src/runtime/cgo/cgo.go +6 -3
- package/bin/go/src/runtime/cgo/gcc_aix_ppc64.S +21 -9
- package/bin/go/src/runtime/cgo/gcc_android.c +0 -26
- package/bin/go/src/runtime/cgo/gcc_clearenv.c +1 -1
- package/bin/go/src/runtime/cgo/gcc_fatalf.c +14 -3
- package/bin/go/src/runtime/cgo/{gcc_libinit.c → gcc_libinit_unix.c} +18 -65
- package/bin/go/src/runtime/cgo/gcc_libinit_windows.c +23 -35
- package/bin/go/src/runtime/cgo/gcc_linux_ppc64x.S +16 -7
- package/bin/go/src/runtime/cgo/gcc_netbsd.c +8 -56
- package/bin/go/src/runtime/cgo/gcc_s390x.S +13 -4
- package/bin/go/src/runtime/cgo/gcc_sigaction.c +1 -1
- package/bin/go/src/runtime/cgo/gcc_unix.c +63 -0
- package/bin/go/src/runtime/cgo/gcc_util.c +0 -19
- package/bin/go/src/runtime/cgo/handle.go +3 -0
- package/bin/go/src/runtime/cgo/libcgo.h +7 -10
- package/bin/go/src/runtime/cgo/libcgo_unix.h +2 -10
- package/bin/go/src/runtime/cgo/pthread_unix.c +138 -0
- package/bin/go/src/runtime/cgo/sigaction.go +1 -1
- package/bin/go/src/runtime/cgo/windows.go +18 -1
- package/bin/go/src/runtime/cgo_ppc64x.go +1 -1
- package/bin/go/src/runtime/cgo_sigaction.go +1 -1
- package/bin/go/src/runtime/cgocall.go +10 -2
- package/bin/go/src/runtime/chan.go +2 -16
- package/bin/go/src/runtime/coro.go +2 -2
- package/bin/go/src/runtime/cpuflags.go +4 -3
- package/bin/go/src/runtime/debug/garbage.go +6 -6
- package/bin/go/src/runtime/debug/mod.go +1 -1
- package/bin/go/src/runtime/debug/stack.go +1 -1
- package/bin/go/src/runtime/debugcall.go +0 -3
- package/bin/go/src/runtime/error.go +6 -0
- package/bin/go/src/runtime/extern.go +5 -3
- package/bin/go/src/runtime/heapdump.go +1 -1
- package/bin/go/src/runtime/iface.go +20 -10
- package/bin/go/src/runtime/libinit.go +48 -0
- package/bin/go/src/runtime/lock_js.go +4 -2
- package/bin/go/src/runtime/lock_spinbit.go +13 -12
- package/bin/go/src/runtime/lock_wasip1.go +4 -2
- package/bin/go/src/runtime/lockrank.go +24 -21
- package/bin/go/src/runtime/lockrank_off.go +5 -2
- package/bin/go/src/runtime/lockrank_on.go +8 -7
- package/bin/go/src/runtime/malloc.go +10 -26
- package/bin/go/src/runtime/malloc_generated.go +819 -8628
- package/bin/go/src/runtime/malloc_stubs.go +187 -197
- package/bin/go/src/runtime/malloc_tables_generated.go +16 -882
- package/bin/go/src/runtime/map.go +4 -4
- package/bin/go/src/runtime/mbitmap.go +3 -1
- package/bin/go/src/runtime/mem.go +2 -6
- package/bin/go/src/runtime/mem_sbrk.go +4 -0
- package/bin/go/src/runtime/memclr_s390x.s +0 -5
- package/bin/go/src/runtime/memmove_s390x.s +0 -7
- package/bin/go/src/runtime/metrics/doc.go +5 -29
- package/bin/go/src/runtime/metrics/sample.go +3 -0
- package/bin/go/src/runtime/metrics.go +3 -2
- package/bin/go/src/runtime/mgc.go +41 -25
- package/bin/go/src/runtime/mgcmark.go +5 -0
- package/bin/go/src/runtime/mgcmark_greenteagc.go +1 -1
- package/bin/go/src/runtime/mgcpacer.go +1 -3
- package/bin/go/src/runtime/mgcscavenge.go +1 -1
- package/bin/go/src/runtime/mheap.go +1 -10
- package/bin/go/src/runtime/mklockrank.go +6 -1
- package/bin/go/src/runtime/mkpreempt.go +7 -0
- package/bin/go/src/runtime/mprof.go +12 -23
- package/bin/go/src/runtime/os2_aix.go +3 -3
- package/bin/go/src/runtime/os3_solaris.go +10 -0
- package/bin/go/src/runtime/os_aix.go +9 -2
- package/bin/go/src/runtime/os_darwin.go +3 -8
- package/bin/go/src/runtime/os_dragonfly.go +10 -0
- package/bin/go/src/runtime/os_js.go +10 -0
- package/bin/go/src/runtime/os_linux32.go +19 -6
- package/bin/go/src/runtime/os_netbsd.go +10 -0
- package/bin/go/src/runtime/os_openbsd.go +10 -0
- package/bin/go/src/runtime/os_plan9.go +10 -0
- package/bin/go/src/runtime/os_wasip1.go +10 -0
- package/bin/go/src/runtime/os_windows.go +45 -12
- package/bin/go/src/runtime/os_workdir_ios_arm64.go +98 -0
- package/bin/go/src/runtime/os_workdir_stub.go +9 -0
- package/bin/go/src/runtime/panic.go +93 -8
- package/bin/go/src/runtime/plugin.go +1 -3
- package/bin/go/src/runtime/pprof/pprof.go +11 -14
- package/bin/go/src/runtime/pprof/protomem.go +8 -15
- package/bin/go/src/runtime/preempt_loong64.s +8 -4
- package/bin/go/src/runtime/preempt_noxreg.go +2 -0
- package/bin/go/src/runtime/preempt_xreg.go +29 -2
- package/bin/go/src/runtime/print.go +9 -1
- package/bin/go/src/runtime/proc.go +68 -17
- package/bin/go/src/runtime/race_riscv64.s +40 -83
- package/bin/go/src/runtime/race_s390x.s +0 -16
- package/bin/go/src/runtime/rand.go +40 -12
- package/bin/go/src/runtime/{rt0_linux_ppc64le.s → rt0_linux_ppc64x.s} +12 -2
- package/bin/go/src/runtime/runtime-gdb.py +13 -2
- package/bin/go/src/runtime/runtime1.go +69 -18
- package/bin/go/src/runtime/runtime2.go +23 -22
- package/bin/go/src/runtime/secret/secret.go +7 -2
- package/bin/go/src/runtime/secret.go +27 -9
- package/bin/go/src/runtime/secret_nosecret.go +1 -1
- package/bin/go/src/runtime/sigaction.go +1 -1
- package/bin/go/src/runtime/signal_unix.go +5 -3
- package/bin/go/src/runtime/softfloat64.go +7 -2
- package/bin/go/src/runtime/string.go +4 -1
- package/bin/go/src/runtime/stubs.go +14 -4
- package/bin/go/src/runtime/stubs_amd64.go +4 -0
- package/bin/go/src/runtime/stubs_arm.go +10 -1
- package/bin/go/src/runtime/stubs_arm64.go +13 -0
- package/bin/go/src/runtime/stubs_loong64.go +18 -0
- package/bin/go/src/runtime/stubs_mips64x.go +9 -0
- package/bin/go/src/runtime/stubs_mipsx.go +11 -0
- package/bin/go/src/runtime/stubs_ppc64x.go +15 -0
- package/bin/go/src/runtime/stubs_riscv64.go +13 -0
- package/bin/go/src/runtime/stubs_s390x.go +18 -0
- package/bin/go/src/runtime/symtab.go +15 -16
- package/bin/go/src/runtime/synctest.go +2 -4
- package/bin/go/src/runtime/sys_aix_ppc64.s +9 -0
- package/bin/go/src/runtime/sys_darwin.go +2 -20
- package/bin/go/src/runtime/sys_darwin_amd64.s +1 -4
- package/bin/go/src/runtime/sys_darwin_arm64.s +3 -6
- package/bin/go/src/runtime/sys_freebsd_riscv64.s +2 -2
- package/bin/go/src/runtime/sys_ios_arm64.go +151 -0
- package/bin/go/src/runtime/sys_ios_arm64.s +78 -0
- package/bin/go/src/runtime/sys_linux_amd64.s +7 -1
- package/bin/go/src/runtime/sys_linux_loong64.s +8 -14
- package/bin/go/src/runtime/sys_linux_ppc64x.s +0 -12
- package/bin/go/src/runtime/sys_linux_riscv64.s +2 -2
- package/bin/go/src/runtime/sys_openbsd.go +1 -1
- package/bin/go/src/runtime/sys_openbsd_riscv64.s +16 -16
- package/bin/go/src/runtime/syscall_windows.go +2 -6
- package/bin/go/src/runtime/time.go +19 -57
- package/bin/go/src/runtime/trace/subscribe.go +0 -3
- package/bin/go/src/runtime/traceback.go +90 -13
- package/bin/go/src/runtime/traceregion.go +3 -3
- package/bin/go/src/runtime/tracestring.go +5 -0
- package/bin/go/src/runtime/type.go +85 -15
- package/bin/go/src/runtime/utf8.go +2 -2
- package/bin/go/src/simd/archsimd/_gen/go.mod +2 -2
- package/bin/go/src/simd/archsimd/_gen/go.sum +2 -2
- package/bin/go/src/simd/archsimd/_gen/main.go +106 -15
- package/bin/go/src/simd/archsimd/_gen/midway/comments.yaml +151 -0
- package/bin/go/src/simd/archsimd/_gen/midway/intersect_simd_ops.go +836 -0
- package/bin/go/src/simd/archsimd/_gen/sgutil/asbits.go +139 -0
- package/bin/go/src/simd/archsimd/_gen/sgutil/compare_natural.go +73 -0
- package/bin/go/src/simd/archsimd/_gen/sgutil/formatted_files.go +66 -0
- package/bin/go/src/simd/archsimd/_gen/sgutil/insert_ordered_map.go +159 -0
- package/bin/go/src/simd/archsimd/_gen/sgutil/merge_generic_ops.go +245 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/arch.go +173 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/arm64/emit.go +166 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/arm64/instruction.go +642 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/arm64/load.go +54 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/arm64/operands.go +406 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/etetest.sh +1 -1
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_simdGenericOps.go +19 -52
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_simdIntrinsics.go +162 -98
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_simdMachineOps.go +50 -19
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_simdTypes.go +198 -140
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_simdrules.go +278 -57
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_simdssa.go +133 -68
- package/bin/go/src/simd/archsimd/_gen/simdgen/gen_utility.go +163 -30
- package/bin/go/src/simd/archsimd/_gen/simdgen/go_amd64.yaml +1 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/go_arm64.yaml +1 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/godefs.go +113 -15
- package/bin/go/src/simd/archsimd/_gen/simdgen/main.go +62 -17
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/AddSub/categories.yaml +12 -12
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/AddSub/{go.yaml → go_amd64.yaml} +12 -12
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/AddSub/go_arm64.yaml +91 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/BitwiseLogic/categories.yaml +11 -3
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/BitwiseLogic/go_arm64.yaml +43 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Compares/go_arm64.yaml +81 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Converts/categories.yaml +11 -6
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Converts/{go.yaml → go_amd64.yaml} +8 -8
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Converts/go_arm64.yaml +358 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/FPonlyArith/categories.yaml +5 -5
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/FPonlyArith/{go.yaml → go_amd64.yaml} +4 -4
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/FPonlyArith/go_arm64.yaml +52 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/GaloisField/categories.yaml +29 -11
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/GaloisField/{go.yaml → go_amd64.yaml} +1 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/GaloisField/go_arm64.yaml +10 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/IntOnlyArith/categories.yaml +2 -5
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/IntOnlyArith/{go.yaml → go_amd64.yaml} +2 -3
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/IntOnlyArith/go_arm64.yaml +35 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/MLOps/categories.yaml +5 -8
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/MLOps/{go.yaml → go_amd64.yaml} +7 -5
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/MLOps/go_arm64.yaml +31 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/MinMax/go_arm64.yaml +61 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Moves/categories.yaml +79 -23
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Moves/{go.yaml → go_amd64.yaml} +213 -104
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Moves/go_arm64.yaml +264 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Mul/categories.yaml +6 -2
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Mul/{go.yaml → go_amd64.yaml} +3 -3
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Mul/go_arm64.yaml +38 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/NegAbs/categories.yaml +7 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/NegAbs/go_arm64.yaml +36 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Others/categories.yaml +5 -1
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Others/go_arm64.yaml +19 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Reduce/categories.yaml +16 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Reduce/go_arm64.yaml +71 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/categories.yaml +156 -41
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/go_amd64.yaml +299 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/go_arm64.yaml +202 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/types.yaml +2 -0
- package/bin/go/src/simd/archsimd/_gen/simdgen/xed.go +44 -11
- package/bin/go/src/simd/archsimd/_gen/tmplgen/main.go +668 -123
- package/bin/go/src/simd/archsimd/_gen/unify/closure.go +1 -1
- package/bin/go/src/simd/archsimd/_gen/unify/env.go +35 -3
- package/bin/go/src/simd/archsimd/_gen/unify/yaml.go +4 -4
- package/bin/go/src/simd/archsimd/_gen/wasmgen/main.go +2064 -0
- package/bin/go/src/simd/archsimd/clmul_arm64.go +79 -0
- package/bin/go/src/simd/archsimd/clmul_emulated.go +103 -0
- package/bin/go/src/simd/archsimd/compare_gen_arm64.go +155 -0
- package/bin/go/src/simd/archsimd/cpu.go +1 -1
- package/bin/go/src/simd/archsimd/cpu_other.go +21 -0
- package/bin/go/src/simd/archsimd/doc.go +0 -2
- package/bin/go/src/simd/archsimd/dummy.s +1 -1
- package/bin/go/src/simd/archsimd/generate.go +1 -1
- package/bin/go/src/simd/archsimd/internal/test_helpers/checkslices.go +2 -2
- package/bin/go/src/simd/archsimd/maskmerge_gen_amd64.go +330 -0
- package/bin/go/src/simd/archsimd/maskmerge_gen_arm64.go +167 -0
- package/bin/go/src/simd/archsimd/ops_amd64.go +4210 -2475
- package/bin/go/src/simd/archsimd/ops_arm64.go +2186 -0
- package/bin/go/src/simd/archsimd/ops_emulated_amd64.go +205 -0
- package/bin/go/src/simd/archsimd/ops_emulated_wasm.go +212 -0
- package/bin/go/src/simd/archsimd/ops_internal_amd64.go +500 -56
- package/bin/go/src/simd/archsimd/ops_internal_arm64.go +234 -0
- package/bin/go/src/simd/archsimd/ops_wasm.go +1795 -0
- package/bin/go/src/simd/archsimd/other_gen_amd64.go +576 -72
- package/bin/go/src/simd/archsimd/other_gen_arm64.go +519 -0
- package/bin/go/src/simd/archsimd/shuffles_amd64.go +217 -76
- package/bin/go/src/simd/archsimd/slice_gen_amd64.go +594 -532
- package/bin/go/src/simd/archsimd/slice_gen_arm64.go +125 -0
- package/bin/go/src/simd/archsimd/slicepart_128.go +302 -0
- package/bin/go/src/simd/archsimd/slicepart_amd64.go +36 -235
- package/bin/go/src/simd/archsimd/slicepart_arm64.go +217 -0
- package/bin/go/src/simd/archsimd/slicepart_wasm.go +217 -0
- package/bin/go/src/simd/archsimd/string.go +1 -1
- package/bin/go/src/simd/archsimd/types_amd64.go +165 -341
- package/bin/go/src/simd/archsimd/types_arm64.go +224 -0
- package/bin/go/src/simd/archsimd/types_wasm.go +354 -0
- package/bin/go/src/simd/archsimd/unsafe_helpers.go +60 -0
- package/bin/go/src/simd/doc.go +91 -0
- package/bin/go/src/simd/dummy.s +7 -0
- package/bin/go/src/simd/internal/bridge/decls_amd64.go +4085 -0
- package/bin/go/src/simd/internal/bridge/decls_arm64.go +1369 -0
- package/bin/go/src/simd/internal/bridge/decls_wasm.go +1369 -0
- package/bin/go/src/simd/internal/bridge/import_hook.go +13 -0
- package/bin/go/src/simd/internal/bridge/simd_emulated.go +3275 -0
- package/bin/go/src/simd/internal/bridge/simd_types_emulated.go +95 -0
- package/bin/go/src/simd/internal/bridge/tofrom_128.go +65 -0
- package/bin/go/src/simd/internal/bridge/tofrom_amd64.go +123 -0
- package/bin/go/src/simd/internal/bridge/tofrom_emulated.go +63 -0
- package/bin/go/src/simd/midway_amd64.go +34 -0
- package/bin/go/src/simd/midway_arm64.go +22 -0
- package/bin/go/src/simd/midway_common.go +138 -0
- package/bin/go/src/simd/midway_wasm.go +13 -0
- package/bin/go/src/simd/simd_emulated.go +3275 -0
- package/bin/go/src/simd/simd_stubs.go +1041 -0
- package/bin/go/src/simd/simd_types.go +96 -0
- package/bin/go/src/simd/tofrom_amd64.go +374 -0
- package/bin/go/src/simd/tofrom_arm64.go +290 -0
- package/bin/go/src/simd/tofrom_wasm.go +290 -0
- package/bin/go/src/slices/slices.go +9 -7
- package/bin/go/src/strconv/isprint.go +81 -51
- package/bin/go/src/strings/builder.go +1 -1
- package/bin/go/src/strings/strings.go +44 -35
- package/bin/go/src/sync/atomic/doc.go +7 -0
- package/bin/go/src/sync/cond.go +4 -2
- package/bin/go/src/sync/pool.go +6 -15
- package/bin/go/src/sync/runtime2_lockrank.go +1 -2
- package/bin/go/src/syscall/exec_bsd.go +3 -3
- package/bin/go/src/syscall/exec_libc2.go +1 -1
- package/bin/go/src/syscall/exec_linux.go +7 -2
- package/bin/go/src/syscall/fs_js.go +9 -4
- package/bin/go/src/syscall/fs_wasip1.go +6 -0
- package/bin/go/src/syscall/js/js.go +2 -2
- package/bin/go/src/syscall/linkname_bsd.go +8 -0
- package/bin/go/src/syscall/linkname_libc.go +1 -1
- package/bin/go/src/syscall/linkname_openbsd.go +0 -2
- package/bin/go/src/syscall/mkall.sh +6 -17
- package/bin/go/src/syscall/syscall_aix.go +5 -0
- package/bin/go/src/syscall/syscall_linux_386.go +9 -0
- package/bin/go/src/syscall/syscall_linux_amd64.go +5 -0
- package/bin/go/src/syscall/syscall_linux_arm.go +4 -0
- package/bin/go/src/syscall/syscall_linux_arm64.go +3 -0
- package/bin/go/src/syscall/syscall_linux_loong64.go +3 -0
- package/bin/go/src/syscall/syscall_linux_mipsx.go +4 -0
- package/bin/go/src/syscall/syscall_linux_riscv64.go +3 -0
- package/bin/go/src/syscall/syscall_linux_s390x.go +5 -0
- package/bin/go/src/syscall/syscall_openbsd.go +77 -2
- package/bin/go/src/syscall/syscall_plan9.go +25 -0
- package/bin/go/src/syscall/syscall_solaris.go +11 -0
- package/bin/go/src/syscall/syscall_unix.go +19 -0
- package/bin/go/src/syscall/syscall_windows.go +1 -1
- package/bin/go/src/testing/synctest/synctest.go +21 -0
- package/bin/go/src/testing/testing.go +211 -52
- package/bin/go/src/text/template/parse/lex.go +6 -6
- package/bin/go/src/text/template/parse/node.go +21 -16
- package/bin/go/src/text/template/parse/parse.go +23 -6
- package/bin/go/src/text/template/template.go +5 -3
- package/bin/go/src/time/format.go +3 -0
- package/bin/go/src/time/sleep.go +0 -33
- package/bin/go/src/time/tick.go +3 -2
- package/bin/go/src/time/time.go +2 -2
- package/bin/go/src/time/tzdata/zzipdata.go +1 -1
- package/bin/go/src/time/zoneinfo.go +5 -4
- package/bin/go/src/time/zoneinfo_read.go +1 -1
- package/bin/go/src/unicode/tables.go +898 -417
- package/bin/go/src/uuid/uuid.go +273 -0
- package/bin/go/src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.go +3 -3
- package/bin/go/src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.s +2066 -6598
- package/bin/go/src/vendor/golang.org/x/crypto/hkdf/hkdf.go +100 -0
- package/bin/go/src/vendor/golang.org/x/net/dns/dnsmessage/message.go +5 -4
- package/bin/go/src/vendor/golang.org/x/net/http/httpproxy/proxy.go +4 -4
- package/bin/go/src/vendor/golang.org/x/net/http3/http3.go +46 -0
- package/bin/go/src/vendor/golang.org/x/net/idna/{idna10.0.0.go → idna.go} +133 -35
- package/bin/go/src/vendor/golang.org/x/net/idna/punycode.go +4 -1
- package/bin/go/src/vendor/golang.org/x/net/idna/tables15.0.0.go +1 -1
- package/bin/go/src/vendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/body.go +231 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/conn.go +131 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/doc.go +10 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/errors.go +102 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/http3.go +95 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/qpack.go +356 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/qpack_decode.go +81 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/qpack_encode.go +61 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/qpack_static.go +142 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/quic.go +40 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/roundtrip.go +423 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/server.go +866 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/settings.go +66 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/stream.go +260 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/transport.go +333 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/http3/varint.go +23 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/httpcommon/request.go +475 -0
- package/bin/go/src/vendor/golang.org/x/net/internal/quic/quicwire/wire.go +150 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/ack_delay.go +26 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/acks.go +213 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/atomic_bits.go +31 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/config.go +158 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/congestion_reno.go +306 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn.go +434 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_close.go +340 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_flow.go +142 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_id.go +502 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_loss.go +85 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_recv.go +631 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_send.go +407 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/conn_streams.go +483 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/crypto_stream.go +157 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/dgram.go +53 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/doc.go +50 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/endpoint.go +478 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/errors.go +129 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/frame_debug.go +730 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/gate.go +86 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/idle.go +168 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/log.go +67 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/loss.go +521 -0
- package/bin/go/src/{runtime/cgo/gcc_stack_windows.c → vendor/golang.org/x/net/quic/math.go} +7 -2
- package/bin/go/src/vendor/golang.org/x/net/quic/pacer.go +129 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/packet.go +267 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/packet_number.go +72 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/packet_parser.go +519 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/packet_protection.go +539 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/packet_writer.go +566 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/path.go +87 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/ping.go +14 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/pipe.go +173 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/qlog.go +272 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/queue.go +63 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/quic.go +221 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/race_disabled.go +10 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/race_enabled.go +27 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/rangeset.go +193 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/retry.go +240 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/rtt.go +71 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/sent_packet.go +119 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/sent_packet_list.go +93 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/sent_val.go +103 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/skip.go +62 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/stateless_reset.go +59 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/stream.go +1106 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/stream_limits.go +138 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/tls.go +123 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/transport_params.go +283 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/udp.go +28 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/udp_darwin.go +45 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/udp_linux.go +39 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/udp_msg.go +245 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/udp_other.go +62 -0
- package/bin/go/src/vendor/golang.org/x/net/quic/udp_packetconn.go +67 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/asm_darwin_arm64_gc.s +12 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu.go +12 -7
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_arm64.go +3 -6
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_darwin_arm64.go +67 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_darwin_arm64_other.go +31 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go +1 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go +2 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_loong64.go +14 -2
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_other_arm64.go +4 -2
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_riscv64.go +1 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_windows.go +26 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_windows_arm64.go +38 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/cpu_x86.go +124 -50
- package/bin/go/src/vendor/golang.org/x/sys/cpu/syscall_darwin_arm64_gc.go +54 -0
- package/bin/go/src/vendor/golang.org/x/sys/cpu/zcpu_windows.go +48 -0
- package/bin/go/src/vendor/golang.org/x/text/secure/bidirule/bidirule.go +4 -0
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +1 -1
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables17.0.0.go +2135 -0
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/forminfo.go +18 -8
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +1410 -1410
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/{tables13.0.0.go → tables17.0.0.go} +3530 -3186
- package/bin/go/src/vendor/modules.txt +14 -8
- package/bin/ttsc-cache.exe +0 -0
- package/bin/ttsc.exe +0 -0
- package/bin/ttscserver.exe +0 -0
- package/package.json +1 -1
- package/bin/go/src/crypto/internal/fips140/nistec/p256_ordinv_noasm.go +0 -13
- package/bin/go/src/go/internal/scannerhooks/hooks.go +0 -11
- package/bin/go/src/hash/maphash/maphash_purego.go +0 -200
- package/bin/go/src/hash/maphash/maphash_runtime.go +0 -64
- package/bin/go/src/internal/goexperiment/exp_goroutineleakprofile_off.go +0 -8
- package/bin/go/src/internal/goexperiment/exp_goroutineleakprofile_on.go +0 -8
- package/bin/go/src/internal/strconv/atofeisel.go +0 -166
- package/bin/go/src/internal/strconv/ftoadbox.go +0 -349
- package/bin/go/src/internal/strconv/ftoafixed.go +0 -184
- package/bin/go/src/internal/strconv/math.go +0 -179
- package/bin/go/src/net/http/h2_bundle.go +0 -12371
- package/bin/go/src/net/http/h2_error.go +0 -37
- package/bin/go/src/runtime/cgo/gcc_darwin_amd64.c +0 -61
- package/bin/go/src/runtime/cgo/gcc_darwin_arm64.c +0 -148
- package/bin/go/src/runtime/cgo/gcc_dragonfly_amd64.c +0 -61
- package/bin/go/src/runtime/cgo/gcc_freebsd.c +0 -72
- package/bin/go/src/runtime/cgo/gcc_freebsd_amd64.c +0 -72
- package/bin/go/src/runtime/cgo/gcc_linux.c +0 -67
- package/bin/go/src/runtime/cgo/gcc_linux_amd64.c +0 -92
- package/bin/go/src/runtime/cgo/gcc_linux_arm64.c +0 -88
- package/bin/go/src/runtime/cgo/gcc_linux_s390x.c +0 -64
- package/bin/go/src/runtime/cgo/gcc_openbsd.c +0 -62
- package/bin/go/src/runtime/cgo/gcc_ppc64x.c +0 -68
- package/bin/go/src/runtime/cgo/gcc_signal2_ios_arm64.c +0 -11
- package/bin/go/src/runtime/cgo/gcc_signal_ios_arm64.c +0 -213
- package/bin/go/src/runtime/cgo/gcc_signal_ios_nolldb.c +0 -10
- package/bin/go/src/runtime/cgo/gcc_solaris_amd64.c +0 -83
- package/bin/go/src/runtime/cgo/gcc_stack_darwin.c +0 -25
- package/bin/go/src/runtime/cgo/gcc_stack_unix.c +0 -48
- package/bin/go/src/runtime/cgo/gcc_windows_386.c +0 -55
- package/bin/go/src/runtime/cgo/gcc_windows_amd64.c +0 -54
- package/bin/go/src/runtime/cgo/gcc_windows_arm64.c +0 -42
- package/bin/go/src/runtime/cgo/libcgo_windows.h +0 -6
- package/bin/go/src/runtime/cgo/signal_ios_arm64.go +0 -10
- package/bin/go/src/runtime/cgo/signal_ios_arm64.s +0 -56
- package/bin/go/src/runtime/rt0_linux_ppc64.s +0 -28
- package/bin/go/src/runtime/stubs_ppc64.go +0 -12
- package/bin/go/src/simd/archsimd/_gen/simdgen/go.yaml +0 -1
- package/bin/go/src/simd/archsimd/_gen/simdgen/ops/ShiftRotate/go.yaml +0 -172
- package/bin/go/src/syscall/asm_openbsd_mips64.s +0 -129
- package/bin/go/src/syscall/syscall_openbsd1.go +0 -12
- package/bin/go/src/syscall/syscall_openbsd_libc.go +0 -84
- package/bin/go/src/syscall/syscall_openbsd_mips64.go +0 -43
- package/bin/go/src/syscall/zerrors_openbsd_mips64.go +0 -1682
- package/bin/go/src/syscall/zsyscall_openbsd_mips64.go +0 -1289
- package/bin/go/src/syscall/zsysnum_openbsd_mips64.go +0 -218
- package/bin/go/src/syscall/ztypes_openbsd_mips64.go +0 -443
- package/bin/go/src/vendor/golang.org/x/net/idna/go118.go +0 -13
- package/bin/go/src/vendor/golang.org/x/net/idna/idna9.0.0.go +0 -717
- package/bin/go/src/vendor/golang.org/x/net/idna/pre_go118.go +0 -11
- package/bin/go/src/vendor/golang.org/x/net/idna/tables10.0.0.go +0 -4559
- package/bin/go/src/vendor/golang.org/x/net/idna/tables11.0.0.go +0 -4653
- package/bin/go/src/vendor/golang.org/x/net/idna/tables12.0.0.go +0 -4733
- package/bin/go/src/vendor/golang.org/x/net/idna/tables13.0.0.go +0 -4959
- package/bin/go/src/vendor/golang.org/x/net/idna/tables9.0.0.go +0 -4486
- package/bin/go/src/vendor/golang.org/x/net/idna/trie12.0.0.go +0 -30
- package/bin/go/src/vendor/golang.org/x/net/idna/trie13.0.0.go +0 -30
- package/bin/go/src/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +0 -11
- package/bin/go/src/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +0 -14
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +0 -1815
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +0 -1887
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +0 -1923
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +0 -1955
- package/bin/go/src/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +0 -1781
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +0 -7657
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +0 -7693
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +0 -7710
- package/bin/go/src/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +0 -7637
- /package/bin/go/src/simd/archsimd/_gen/simdgen/ops/BitwiseLogic/{go.yaml → go_amd64.yaml} +0 -0
- /package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Compares/{go.yaml → go_amd64.yaml} +0 -0
- /package/bin/go/src/simd/archsimd/_gen/simdgen/ops/MinMax/{go.yaml → go_amd64.yaml} +0 -0
- /package/bin/go/src/simd/archsimd/_gen/simdgen/ops/Others/{go.yaml → go_amd64.yaml} +0 -0
|
@@ -21,41 +21,38 @@
|
|
|
21
21
|
// Following [utf8.DecodeRune], each byte of an invalid UTF-8 sequence
|
|
22
22
|
// is treated as if it encoded utf8.RuneError (U+FFFD).
|
|
23
23
|
//
|
|
24
|
-
// There are
|
|
24
|
+
// There are 24 methods of [Regexp] that match a regular expression and identify
|
|
25
25
|
// the matched text. Their names are matched by this regular expression:
|
|
26
26
|
//
|
|
27
|
-
//
|
|
27
|
+
// (All|Find|FindAll)(String)?(Submatch)?(Index)?
|
|
28
28
|
//
|
|
29
|
-
//
|
|
30
|
-
// matches of the entire expression.
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
29
|
+
// The ‘All’ variants return an iterator over successive non-overlapping
|
|
30
|
+
// matches of the entire expression. The ‘FindAll’ variants return a slice
|
|
31
|
+
// of those matches instead. Empty matches abutting a preceding
|
|
32
|
+
// match are ignored. The ‘FindAll’ variants take an extra integer argument, n.
|
|
33
|
+
// If n >= 0, the function returns at most n matches/submatches;
|
|
34
|
+
// otherwise, it returns all of them.
|
|
35
35
|
//
|
|
36
|
-
//
|
|
37
|
-
// of bytes; return values are adjusted as appropriate.
|
|
36
|
+
// The ‘Find’ variants return only the first match that All or FindAll would return.
|
|
38
37
|
//
|
|
39
|
-
// If
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
// regular expression,
|
|
38
|
+
// If ‘String’ is present, the argument is a string; otherwise it is a []byte.
|
|
39
|
+
//
|
|
40
|
+
// By default, each returned match is denoted by the substring matching the
|
|
41
|
+
// regular expression, of type string or []byte according to the type of the argument.
|
|
42
|
+
// If ‘Submatch’ is present, each match is represented instead by a slice of
|
|
43
|
+
// the substrings matching the regular expression's parenthesized subexpressions
|
|
44
|
+
// (also known as capturing groups), numbered from left to right in order of opening
|
|
43
45
|
// parenthesis. Submatch 0 is the match of the entire expression, submatch 1 is
|
|
44
46
|
// the match of the first parenthesized subexpression, and so on.
|
|
45
|
-
//
|
|
46
|
-
// If
|
|
47
|
-
//
|
|
48
|
-
// the nth submatch. The pair for n==0 identifies the match of the entire
|
|
49
|
-
// expression. If 'Index' is not present, the match is identified by the text
|
|
50
|
-
// of the match/submatch. If an index is negative or text is nil, it means that
|
|
51
|
-
// subexpression did not match any string in the input. For 'String' versions
|
|
47
|
+
// If ‘Index’ is present, each substring is instead denoted by a pair of byte indexes
|
|
48
|
+
// within the input string. If an index is negative or substring is nil, it means that
|
|
49
|
+
// the subexpression did not match any string in the input. For ‘String’ versions,
|
|
52
50
|
// an empty string means either no match or an empty match.
|
|
53
51
|
//
|
|
54
52
|
// There is also a subset of the methods that can be applied to text read from
|
|
55
53
|
// an [io.RuneReader]: [Regexp.MatchReader], [Regexp.FindReaderIndex],
|
|
56
54
|
// [Regexp.FindReaderSubmatchIndex].
|
|
57
|
-
//
|
|
58
|
-
// This set may grow. Note that regular expression matches may need to
|
|
55
|
+
// Note that regular expression matches may need to
|
|
59
56
|
// examine text beyond the text returned by a match, so the methods that
|
|
60
57
|
// match text from an [io.RuneReader] may read arbitrarily far into the input
|
|
61
58
|
// before returning.
|
|
@@ -66,7 +63,9 @@ package regexp
|
|
|
66
63
|
import (
|
|
67
64
|
"bytes"
|
|
68
65
|
"io"
|
|
66
|
+
"iter"
|
|
69
67
|
"regexp/syntax"
|
|
68
|
+
"slices"
|
|
70
69
|
"strconv"
|
|
71
70
|
"strings"
|
|
72
71
|
"sync"
|
|
@@ -215,7 +214,7 @@ func compile(expr string, mode syntax.Flags, longest bool) (*Regexp, error) {
|
|
|
215
214
|
return regexp, nil
|
|
216
215
|
}
|
|
217
216
|
|
|
218
|
-
// Pools of *machine for use during (*Regexp).
|
|
217
|
+
// Pools of *machine for use during (*Regexp).find,
|
|
219
218
|
// split up by the size of the execution queues.
|
|
220
219
|
// matchPool[i] machines have queue size matchSize[i].
|
|
221
220
|
// On a 64-bit system each queue entry is 16 bytes,
|
|
@@ -596,7 +595,7 @@ func (re *Regexp) replaceAll(bsrc []byte, src string, nmatch int, repl func(dst
|
|
|
596
595
|
|
|
597
596
|
var dstCap [2]int
|
|
598
597
|
for searchPos <= endPos {
|
|
599
|
-
a := re.
|
|
598
|
+
a := re.find(nil, bsrc, src, searchPos, nmatch, dstCap[:0])
|
|
600
599
|
if len(a) == 0 {
|
|
601
600
|
break // no more matches
|
|
602
601
|
}
|
|
@@ -743,138 +742,410 @@ func (re *Regexp) pad(a []int) []int {
|
|
|
743
742
|
return a
|
|
744
743
|
}
|
|
745
744
|
|
|
746
|
-
//
|
|
747
|
-
// with the location of successive matches in the input text.
|
|
745
|
+
// matches yields the location of successive matches in the input text.
|
|
748
746
|
// The input text is b if non-nil, otherwise s.
|
|
749
|
-
func (re *Regexp)
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
} else {
|
|
754
|
-
end = len(b)
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
for pos, i, prevMatchEnd := 0, 0, -1; i < n && pos <= end; {
|
|
758
|
-
matches := re.doExecute(nil, b, s, pos, re.prog.NumCap, nil)
|
|
759
|
-
if len(matches) == 0 {
|
|
760
|
-
break
|
|
747
|
+
func (re *Regexp) matches(s string, b []byte, max, ncap int) iter.Seq[[]int] {
|
|
748
|
+
return func(yield func([]int) bool) {
|
|
749
|
+
if max == 0 {
|
|
750
|
+
return
|
|
761
751
|
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
is := inputString{str: s}
|
|
774
|
-
_, width = is.step(pos)
|
|
775
|
-
} else {
|
|
776
|
-
ib := inputBytes{str: b}
|
|
777
|
-
_, width = ib.step(pos)
|
|
752
|
+
var end int
|
|
753
|
+
if b == nil {
|
|
754
|
+
end = len(s)
|
|
755
|
+
} else {
|
|
756
|
+
end = len(b)
|
|
757
|
+
}
|
|
758
|
+
var matches []int
|
|
759
|
+
for pos, prevMatchEnd := 0, -1; pos <= end; {
|
|
760
|
+
matches = re.find(nil, b, s, pos, ncap, matches[:0])
|
|
761
|
+
if len(matches) == 0 {
|
|
762
|
+
break
|
|
778
763
|
}
|
|
779
|
-
|
|
780
|
-
|
|
764
|
+
|
|
765
|
+
accept := true
|
|
766
|
+
if matches[1] == pos {
|
|
767
|
+
// We've found an empty match.
|
|
768
|
+
if matches[0] == prevMatchEnd {
|
|
769
|
+
// We don't allow an empty match right
|
|
770
|
+
// after a previous match, so ignore it.
|
|
771
|
+
accept = false
|
|
772
|
+
}
|
|
773
|
+
var width int
|
|
774
|
+
if b == nil {
|
|
775
|
+
is := inputString{str: s}
|
|
776
|
+
_, width = is.step(pos)
|
|
777
|
+
} else {
|
|
778
|
+
ib := inputBytes{str: b}
|
|
779
|
+
_, width = ib.step(pos)
|
|
780
|
+
}
|
|
781
|
+
if width > 0 {
|
|
782
|
+
pos += width
|
|
783
|
+
} else {
|
|
784
|
+
pos = end + 1
|
|
785
|
+
}
|
|
781
786
|
} else {
|
|
782
|
-
pos =
|
|
787
|
+
pos = matches[1]
|
|
783
788
|
}
|
|
784
|
-
|
|
785
|
-
pos = matches[1]
|
|
786
|
-
}
|
|
787
|
-
prevMatchEnd = matches[1]
|
|
789
|
+
prevMatchEnd = matches[1]
|
|
788
790
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
791
|
+
if accept {
|
|
792
|
+
if !yield(re.pad(matches)) {
|
|
793
|
+
return
|
|
794
|
+
}
|
|
795
|
+
if max > 0 {
|
|
796
|
+
if max--; max == 0 {
|
|
797
|
+
return
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
792
801
|
}
|
|
793
802
|
}
|
|
794
803
|
}
|
|
795
804
|
|
|
796
|
-
// Find returns
|
|
797
|
-
//
|
|
805
|
+
// Find returns the text of the leftmost match for re in b.
|
|
806
|
+
// The return value is nil for no match.
|
|
798
807
|
func (re *Regexp) Find(b []byte) []byte {
|
|
799
808
|
var dstCap [2]int
|
|
800
|
-
a := re.
|
|
809
|
+
a := re.find(nil, b, "", 0, 2, dstCap[:0])
|
|
801
810
|
if a == nil {
|
|
802
811
|
return nil
|
|
803
812
|
}
|
|
804
813
|
return b[a[0]:a[1]:a[1]]
|
|
805
814
|
}
|
|
806
815
|
|
|
807
|
-
//
|
|
808
|
-
//
|
|
809
|
-
//
|
|
810
|
-
// A return value of nil indicates no match.
|
|
811
|
-
func (re *Regexp) FindIndex(b []byte) (loc []int) {
|
|
812
|
-
a := re.doExecute(nil, b, "", 0, 2, nil)
|
|
813
|
-
if a == nil {
|
|
814
|
-
return nil
|
|
815
|
-
}
|
|
816
|
-
return a[0:2]
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
// FindString returns a string holding the text of the leftmost match in s of the regular
|
|
820
|
-
// expression. If there is no match, the return value is an empty string,
|
|
821
|
-
// but it will also be empty if the regular expression successfully matches
|
|
822
|
-
// an empty string. Use [Regexp.FindStringIndex] or [Regexp.FindStringSubmatch] if it is
|
|
823
|
-
// necessary to distinguish these cases.
|
|
816
|
+
// FindString returns the text of the leftmost match for re in s.
|
|
817
|
+
// The return value is the empty string both for an empty match and for no match.
|
|
818
|
+
// To distinguish those two cases, use [Regexp.FindStringIndex] or [Regexp.FindStringSubmatch].
|
|
824
819
|
func (re *Regexp) FindString(s string) string {
|
|
825
820
|
var dstCap [2]int
|
|
826
|
-
a := re.
|
|
821
|
+
a := re.find(nil, nil, s, 0, 2, dstCap[:0])
|
|
827
822
|
if a == nil {
|
|
828
823
|
return ""
|
|
829
824
|
}
|
|
830
825
|
return s[a[0]:a[1]]
|
|
831
826
|
}
|
|
832
827
|
|
|
833
|
-
//
|
|
834
|
-
//
|
|
835
|
-
//
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
if a == nil {
|
|
828
|
+
// FindIndex returns the location of the leftmost match for re in b.
|
|
829
|
+
// The match itself is at b[m[0]:m[1]].
|
|
830
|
+
// The return value is nil for no match.
|
|
831
|
+
func (re *Regexp) FindIndex(b []byte) (m []int) {
|
|
832
|
+
m = re.find(nil, b, "", 0, 2, nil)
|
|
833
|
+
if m == nil {
|
|
840
834
|
return nil
|
|
841
835
|
}
|
|
842
|
-
return
|
|
836
|
+
return m[0:2]
|
|
843
837
|
}
|
|
844
838
|
|
|
845
|
-
//
|
|
846
|
-
//
|
|
847
|
-
//
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
839
|
+
// FindStringIndex returns the location of the leftmost match for re in s.
|
|
840
|
+
// The match itself is at s[m[0]:m[1]].
|
|
841
|
+
// The return value is nil for no match.
|
|
842
|
+
func (re *Regexp) FindStringIndex(s string) (m []int) {
|
|
843
|
+
m = re.find(nil, nil, s, 0, 2, nil)
|
|
844
|
+
if m == nil {
|
|
845
|
+
return nil
|
|
846
|
+
}
|
|
847
|
+
return m[0:2]
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
// FindReaderIndex returns the location of the leftmost match for re in r.
|
|
851
|
+
// The match starts at byte index m[0] and ends just before byte index m[1].
|
|
852
|
+
// The return value is nil for no match.
|
|
853
|
+
//
|
|
854
|
+
// FindReaderIndex may read arbitrarily far from r,
|
|
855
|
+
// including reading beyond the returned match.
|
|
856
|
+
func (re *Regexp) FindReaderIndex(r io.RuneReader) (m []int) {
|
|
857
|
+
m = re.find(r, nil, "", 0, 2, nil)
|
|
858
|
+
if m == nil {
|
|
853
859
|
return nil
|
|
854
860
|
}
|
|
855
|
-
return
|
|
861
|
+
return m[0:2]
|
|
856
862
|
}
|
|
857
863
|
|
|
858
|
-
// FindSubmatch returns
|
|
859
|
-
//
|
|
860
|
-
//
|
|
861
|
-
// comment.
|
|
862
|
-
// A return value of nil indicates no match.
|
|
864
|
+
// FindSubmatch returns the first match for re in b, including submatches.
|
|
865
|
+
// The overall match is m[0], the first submatch is m[1], and so on.
|
|
866
|
+
// The return value is nil for no match.
|
|
863
867
|
func (re *Regexp) FindSubmatch(b []byte) [][]byte {
|
|
864
868
|
var dstCap [4]int
|
|
865
|
-
|
|
869
|
+
m := re.find(nil, b, "", 0, re.prog.NumCap, dstCap[:0])
|
|
870
|
+
if m == nil {
|
|
871
|
+
return nil
|
|
872
|
+
}
|
|
873
|
+
sub := make([][]byte, 1+re.numSubexp)
|
|
874
|
+
for i := range sub {
|
|
875
|
+
if 2*i < len(m) && m[2*i] >= 0 {
|
|
876
|
+
sub[i] = b[m[2*i]:m[2*i+1]:m[2*i+1]]
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
return sub
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
// FindStringSubmatch returns the first match for re in s, including submatches.
|
|
883
|
+
// The overall match is s[0], the first submatch is s[1], and so on.
|
|
884
|
+
// The return value is nil for no match.
|
|
885
|
+
func (re *Regexp) FindStringSubmatch(s string) []string {
|
|
886
|
+
var dstCap [4]int
|
|
887
|
+
a := re.find(nil, nil, s, 0, re.prog.NumCap, dstCap[:0])
|
|
866
888
|
if a == nil {
|
|
867
889
|
return nil
|
|
868
890
|
}
|
|
869
|
-
ret := make([]
|
|
891
|
+
ret := make([]string, 1+re.numSubexp)
|
|
870
892
|
for i := range ret {
|
|
871
893
|
if 2*i < len(a) && a[2*i] >= 0 {
|
|
872
|
-
ret[i] =
|
|
894
|
+
ret[i] = s[a[2*i]:a[2*i+1]]
|
|
873
895
|
}
|
|
874
896
|
}
|
|
875
897
|
return ret
|
|
876
898
|
}
|
|
877
899
|
|
|
900
|
+
// FindSubmatchIndex returns the first match for re in b, including submatches.
|
|
901
|
+
// The overall match is b[m[0]:m[1]], the first submatch is b[m[2]:m[3]], and so on.
|
|
902
|
+
// The return value is nil for no match.
|
|
903
|
+
func (re *Regexp) FindSubmatchIndex(b []byte) []int {
|
|
904
|
+
return re.pad(re.find(nil, b, "", 0, re.prog.NumCap, nil))
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
// FindStringSubmatchIndex returns the first match for re in s, including submatches.
|
|
908
|
+
// The overall match is s[m[0]:m[1]], the first submatch is s[m[2]:m[3]], and so on.
|
|
909
|
+
// The return value is nil for no match.
|
|
910
|
+
func (re *Regexp) FindStringSubmatchIndex(s string) []int {
|
|
911
|
+
return re.pad(re.find(nil, nil, s, 0, re.prog.NumCap, nil))
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
// FindReaderSubmatchIndex returns the first match for re in r, including submatches.
|
|
915
|
+
// The overall match is at byte index m[0] up to m[1],
|
|
916
|
+
// the first submatch is at byte index m[2] up to m[3], and so on.
|
|
917
|
+
// The return value is nil for no match.
|
|
918
|
+
//
|
|
919
|
+
// FindReaderSubmatchIndex may read arbitrarily far from r,
|
|
920
|
+
// including reading beyond the returned match.
|
|
921
|
+
func (re *Regexp) FindReaderSubmatchIndex(r io.RuneReader) []int {
|
|
922
|
+
return re.pad(re.find(r, nil, "", 0, re.prog.NumCap, nil))
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
// all returns at most n matches for re in b.
|
|
926
|
+
func (re *Regexp) all(b []byte, n int) iter.Seq[[]byte] {
|
|
927
|
+
return func(yield func([]byte) bool) {
|
|
928
|
+
for m := range re.matches("", b, n, 2) {
|
|
929
|
+
if !yield(b[m[0]:m[1]:m[1]]) {
|
|
930
|
+
break
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
// allString returns at most n matches for re in s.
|
|
937
|
+
func (re *Regexp) allString(s string, n int) iter.Seq[string] {
|
|
938
|
+
return func(yield func(string) bool) {
|
|
939
|
+
for m := range re.matches(s, nil, n, 2) {
|
|
940
|
+
if !yield(s[m[0]:m[1]]) {
|
|
941
|
+
break
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
// allIndex returns the locations of at most n matches for re in b.
|
|
948
|
+
func (re *Regexp) allIndex(b []byte, n int) iter.Seq[[]int] {
|
|
949
|
+
return func(yield func([]int) bool) {
|
|
950
|
+
for m := range re.matches("", b, n, 2) {
|
|
951
|
+
if !yield([]int{m[0], m[1]}) {
|
|
952
|
+
break
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
// allStringIndex returns the locations of at most n matches for re in s.
|
|
959
|
+
func (re *Regexp) allStringIndex(s string, n int) iter.Seq[[]int] {
|
|
960
|
+
return func(yield func([]int) bool) {
|
|
961
|
+
for m := range re.matches(s, nil, n, 2) {
|
|
962
|
+
if !yield([]int{m[0], m[1]}) {
|
|
963
|
+
break
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
// allSubmatch returns the locations of at most n matches for re in b,
|
|
970
|
+
// including submatch locations.
|
|
971
|
+
func (re *Regexp) allSubmatch(b []byte, n int) iter.Seq[[][]byte] {
|
|
972
|
+
return func(yield func([][]byte) bool) {
|
|
973
|
+
for m := range re.matches("", b, n, re.prog.NumCap) {
|
|
974
|
+
sub := make([][]byte, len(m)/2)
|
|
975
|
+
for i := range sub {
|
|
976
|
+
if m[2*i] >= 0 {
|
|
977
|
+
sub[i] = b[m[2*i]:m[2*i+1]:m[2*i+1]]
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
if !yield(sub) {
|
|
981
|
+
break
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
// allStringSubmatch returns the locations of at most n matches for re in s,
|
|
988
|
+
// including submatch locations.
|
|
989
|
+
func (re *Regexp) allStringSubmatch(s string, n int) iter.Seq[[]string] {
|
|
990
|
+
return func(yield func([]string) bool) {
|
|
991
|
+
for m := range re.matches(s, nil, n, re.prog.NumCap) {
|
|
992
|
+
sub := make([]string, len(m)/2)
|
|
993
|
+
for i := range sub {
|
|
994
|
+
if m[2*i] >= 0 {
|
|
995
|
+
sub[i] = s[m[2*i]:m[2*i+1]]
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
if !yield(sub) {
|
|
999
|
+
break
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
// allSubmatchIndex returns the locations of at most n matches for re in b,
|
|
1006
|
+
// including submatch locations.
|
|
1007
|
+
func (re *Regexp) allSubmatchIndex(b []byte, n int) iter.Seq[[]int] {
|
|
1008
|
+
return func(yield func([]int) bool) {
|
|
1009
|
+
for m := range re.matches("", b, n, re.prog.NumCap) {
|
|
1010
|
+
if !yield(slices.Clone(m)) {
|
|
1011
|
+
break
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
// allStringSubmatchIndex returns the locations of at most n matches for re in s,
|
|
1018
|
+
// including submatch locations.
|
|
1019
|
+
func (re *Regexp) allStringSubmatchIndex(s string, n int) iter.Seq[[]int] {
|
|
1020
|
+
return func(yield func([]int) bool) {
|
|
1021
|
+
for m := range re.matches(s, nil, n, re.prog.NumCap) {
|
|
1022
|
+
if !yield(slices.Clone(m)) {
|
|
1023
|
+
break
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
// All returns all the matches for re in b.
|
|
1030
|
+
func (re *Regexp) _All(b []byte) iter.Seq[[]byte] {
|
|
1031
|
+
return re.all(b, -1)
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
// AllString returns all the matches for re in s.
|
|
1035
|
+
func (re *Regexp) _AllString(s string) iter.Seq[string] {
|
|
1036
|
+
return re.allString(s, -1)
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
// AllIndex returns the locations of all matches for re in b.
|
|
1040
|
+
func (re *Regexp) _AllIndex(b []byte) iter.Seq[[]int] {
|
|
1041
|
+
return re.allIndex(b, -1)
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
// AllStringIndex returns the locations of all matches for re in s.
|
|
1045
|
+
func (re *Regexp) _AllStringIndex(s string) iter.Seq[[]int] {
|
|
1046
|
+
return re.allStringIndex(s, -1)
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// AllSubmatch returns the locations of all matches for re in b,
|
|
1050
|
+
// including submatch locations.
|
|
1051
|
+
// In each returned match m, the overall match is m[0],
|
|
1052
|
+
// the first submatch is m[1], and so on.
|
|
1053
|
+
func (re *Regexp) _AllSubmatch(b []byte) iter.Seq[[][]byte] {
|
|
1054
|
+
return re.allSubmatch(b, -1)
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
// AllStringSubmatch returns the locations of all matches for re in s,
|
|
1058
|
+
// including submatch locations.
|
|
1059
|
+
// In each returned match m, m[0] is the overall match,
|
|
1060
|
+
// m[1] is the first submatch, and so on.
|
|
1061
|
+
func (re *Regexp) _AllStringSubmatch(s string) iter.Seq[[]string] {
|
|
1062
|
+
return re.allStringSubmatch(s, -1)
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
// AllSubmatchIndex returns the locations of all matches for re in b,
|
|
1066
|
+
// including submatch locations.
|
|
1067
|
+
// In each returned match m, the overall match is b[m[0]:m[1]],
|
|
1068
|
+
// the first submatch is b[m[2]:m[3]], and so on.
|
|
1069
|
+
func (re *Regexp) _AllSubmatchIndex(b []byte) iter.Seq[[]int] {
|
|
1070
|
+
return re.allSubmatchIndex(b, -1)
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
// AllStringSubmatchIndex returns the locations of all matches for re in s,
|
|
1074
|
+
// including submatch locations.
|
|
1075
|
+
// In each returned match m, the overall match is s[m[0]:m[1]],
|
|
1076
|
+
// the first submatch is s[m[2]:m[3]], and so on.
|
|
1077
|
+
func (re *Regexp) _AllStringSubmatchIndex(s string) iter.Seq[[]int] {
|
|
1078
|
+
return re.allStringSubmatchIndex(s, -1)
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
// FindAll returns all the matches for re in b.
|
|
1082
|
+
// If n >= 0, FindAll returns no more than n matches.
|
|
1083
|
+
// See [Regexp.All] for the equivalent iterator form.
|
|
1084
|
+
func (re *Regexp) FindAll(b []byte, n int) [][]byte {
|
|
1085
|
+
return slices.Collect(re.all(b, n))
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
// FindAllString returns all the matches for re in s.
|
|
1089
|
+
// If n >= 0, FindAllString returns no more than n matches.
|
|
1090
|
+
// See [Regexp.AllString] for the equivalent iterator form.
|
|
1091
|
+
func (re *Regexp) FindAllString(s string, n int) []string {
|
|
1092
|
+
return slices.Collect(re.allString(s, n))
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
// FindAllIndex returns the locations of all matches for re in b.
|
|
1096
|
+
// If n >= 0, FindAllIndex returns no more than n matches.
|
|
1097
|
+
// See [Regexp.AllIndex] for the equivalent iterator form.
|
|
1098
|
+
func (re *Regexp) FindAllIndex(b []byte, n int) [][]int {
|
|
1099
|
+
return slices.Collect(re.allIndex(b, n))
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
// FindAllStringIndex returns the locations of all matches for re in s.
|
|
1103
|
+
// If n >= 0, FindAllStringIndex returns no more than n matches.
|
|
1104
|
+
// See [Regexp.AllStringIndex] for the equivalent iterator form.
|
|
1105
|
+
func (re *Regexp) FindAllStringIndex(s string, n int) [][]int {
|
|
1106
|
+
return slices.Collect(re.allStringIndex(s, n))
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
// FindAllSubmatch returns the locations of all matches for re in b,
|
|
1110
|
+
// including submatch locations.
|
|
1111
|
+
// In each returned match m, the overall match is m[0],
|
|
1112
|
+
// the first submatch is m[1], and so on.
|
|
1113
|
+
// If n >= 0, FindAllSubmatch returns no more than n matches.
|
|
1114
|
+
// See [Regexp.AllSubmatch] for the equivalent iterator form.
|
|
1115
|
+
func (re *Regexp) FindAllSubmatch(b []byte, n int) [][][]byte {
|
|
1116
|
+
return slices.Collect(re.allSubmatch(b, n))
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
// FindAllStringSubmatch returns the locations of all matches for re in s,
|
|
1120
|
+
// including submatch locations.
|
|
1121
|
+
// In each returned match m, m[0] is the overall match,
|
|
1122
|
+
// m[1] is the first submatch, and so on.
|
|
1123
|
+
// If n >= 0, FindAllStringSubmatch returns no more than n matches.
|
|
1124
|
+
// See [Regexp.AllStringSubmatch] for the equivalent iterator form.
|
|
1125
|
+
func (re *Regexp) FindAllStringSubmatch(s string, n int) [][]string {
|
|
1126
|
+
return slices.Collect(re.allStringSubmatch(s, n))
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// FindAllSubmatchIndex returns the locations of all matches for re in b,
|
|
1130
|
+
// including submatch locations.
|
|
1131
|
+
// In each returned match m, the overall match is b[m[0]:m[1]],
|
|
1132
|
+
// the first submatch is b[m[2]:m[3]], and so on.
|
|
1133
|
+
// If n >= 0, FindAllSubmatchIndex returns no more than n matches.
|
|
1134
|
+
// See [Regexp.AllSubmatchIndex] for the equivalent iterator form.
|
|
1135
|
+
func (re *Regexp) FindAllSubmatchIndex(b []byte, n int) [][]int {
|
|
1136
|
+
return slices.Collect(re.allSubmatchIndex(b, n))
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
// FindAllStringSubmatchIndex returns the locations of all matches for re in s,
|
|
1140
|
+
// including submatch locations.
|
|
1141
|
+
// In each returned match m, the overall match is s[m[0]:m[1]],
|
|
1142
|
+
// the first submatch is s[m[2]:m[3]], and so on.
|
|
1143
|
+
// If n >= 0, FindAllStringSubmatchIndex returns no more than n matches.
|
|
1144
|
+
// See [Regexp.AllStringSubmatchIndex] for the equivalent iterator form.
|
|
1145
|
+
func (re *Regexp) FindAllStringSubmatchIndex(s string, n int) [][]int {
|
|
1146
|
+
return slices.Collect(re.allStringSubmatchIndex(s, n))
|
|
1147
|
+
}
|
|
1148
|
+
|
|
878
1149
|
// Expand appends template to dst and returns the result; during the
|
|
879
1150
|
// append, Expand replaces variables in the template with corresponding
|
|
880
1151
|
// matches drawn from src. The match slice should have been returned by
|
|
@@ -1001,212 +1272,6 @@ func extract(str string) (name string, num int, rest string, ok bool) {
|
|
|
1001
1272
|
return
|
|
1002
1273
|
}
|
|
1003
1274
|
|
|
1004
|
-
// FindSubmatchIndex returns a slice holding the index pairs identifying the
|
|
1005
|
-
// leftmost match of the regular expression in b and the matches, if any, of
|
|
1006
|
-
// its subexpressions, as defined by the 'Submatch' and 'Index' descriptions
|
|
1007
|
-
// in the package comment.
|
|
1008
|
-
// A return value of nil indicates no match.
|
|
1009
|
-
func (re *Regexp) FindSubmatchIndex(b []byte) []int {
|
|
1010
|
-
return re.pad(re.doExecute(nil, b, "", 0, re.prog.NumCap, nil))
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
// FindStringSubmatch returns a slice of strings holding the text of the
|
|
1014
|
-
// leftmost match of the regular expression in s and the matches, if any, of
|
|
1015
|
-
// its subexpressions, as defined by the 'Submatch' description in the
|
|
1016
|
-
// package comment.
|
|
1017
|
-
// A return value of nil indicates no match.
|
|
1018
|
-
func (re *Regexp) FindStringSubmatch(s string) []string {
|
|
1019
|
-
var dstCap [4]int
|
|
1020
|
-
a := re.doExecute(nil, nil, s, 0, re.prog.NumCap, dstCap[:0])
|
|
1021
|
-
if a == nil {
|
|
1022
|
-
return nil
|
|
1023
|
-
}
|
|
1024
|
-
ret := make([]string, 1+re.numSubexp)
|
|
1025
|
-
for i := range ret {
|
|
1026
|
-
if 2*i < len(a) && a[2*i] >= 0 {
|
|
1027
|
-
ret[i] = s[a[2*i]:a[2*i+1]]
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
return ret
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
// FindStringSubmatchIndex returns a slice holding the index pairs
|
|
1034
|
-
// identifying the leftmost match of the regular expression in s and the
|
|
1035
|
-
// matches, if any, of its subexpressions, as defined by the 'Submatch' and
|
|
1036
|
-
// 'Index' descriptions in the package comment.
|
|
1037
|
-
// A return value of nil indicates no match.
|
|
1038
|
-
func (re *Regexp) FindStringSubmatchIndex(s string) []int {
|
|
1039
|
-
return re.pad(re.doExecute(nil, nil, s, 0, re.prog.NumCap, nil))
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
// FindReaderSubmatchIndex returns a slice holding the index pairs
|
|
1043
|
-
// identifying the leftmost match of the regular expression of text read by
|
|
1044
|
-
// the [io.RuneReader], and the matches, if any, of its subexpressions, as defined
|
|
1045
|
-
// by the 'Submatch' and 'Index' descriptions in the package comment. A
|
|
1046
|
-
// return value of nil indicates no match.
|
|
1047
|
-
func (re *Regexp) FindReaderSubmatchIndex(r io.RuneReader) []int {
|
|
1048
|
-
return re.pad(re.doExecute(r, nil, "", 0, re.prog.NumCap, nil))
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
const startSize = 10 // The size at which to start a slice in the 'All' routines.
|
|
1052
|
-
|
|
1053
|
-
// FindAll is the 'All' version of [Regexp.Find]; it returns a slice of all successive
|
|
1054
|
-
// matches of the expression, as defined by the 'All' description in the
|
|
1055
|
-
// package comment.
|
|
1056
|
-
// A return value of nil indicates no match.
|
|
1057
|
-
func (re *Regexp) FindAll(b []byte, n int) [][]byte {
|
|
1058
|
-
if n < 0 {
|
|
1059
|
-
n = len(b) + 1
|
|
1060
|
-
}
|
|
1061
|
-
var result [][]byte
|
|
1062
|
-
re.allMatches("", b, n, func(match []int) {
|
|
1063
|
-
if result == nil {
|
|
1064
|
-
result = make([][]byte, 0, startSize)
|
|
1065
|
-
}
|
|
1066
|
-
result = append(result, b[match[0]:match[1]:match[1]])
|
|
1067
|
-
})
|
|
1068
|
-
return result
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
// FindAllIndex is the 'All' version of [Regexp.FindIndex]; it returns a slice of all
|
|
1072
|
-
// successive matches of the expression, as defined by the 'All' description
|
|
1073
|
-
// in the package comment.
|
|
1074
|
-
// A return value of nil indicates no match.
|
|
1075
|
-
func (re *Regexp) FindAllIndex(b []byte, n int) [][]int {
|
|
1076
|
-
if n < 0 {
|
|
1077
|
-
n = len(b) + 1
|
|
1078
|
-
}
|
|
1079
|
-
var result [][]int
|
|
1080
|
-
re.allMatches("", b, n, func(match []int) {
|
|
1081
|
-
if result == nil {
|
|
1082
|
-
result = make([][]int, 0, startSize)
|
|
1083
|
-
}
|
|
1084
|
-
result = append(result, match[0:2])
|
|
1085
|
-
})
|
|
1086
|
-
return result
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
// FindAllString is the 'All' version of [Regexp.FindString]; it returns a slice of all
|
|
1090
|
-
// successive matches of the expression, as defined by the 'All' description
|
|
1091
|
-
// in the package comment.
|
|
1092
|
-
// A return value of nil indicates no match.
|
|
1093
|
-
func (re *Regexp) FindAllString(s string, n int) []string {
|
|
1094
|
-
if n < 0 {
|
|
1095
|
-
n = len(s) + 1
|
|
1096
|
-
}
|
|
1097
|
-
var result []string
|
|
1098
|
-
re.allMatches(s, nil, n, func(match []int) {
|
|
1099
|
-
if result == nil {
|
|
1100
|
-
result = make([]string, 0, startSize)
|
|
1101
|
-
}
|
|
1102
|
-
result = append(result, s[match[0]:match[1]])
|
|
1103
|
-
})
|
|
1104
|
-
return result
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
// FindAllStringIndex is the 'All' version of [Regexp.FindStringIndex]; it returns a
|
|
1108
|
-
// slice of all successive matches of the expression, as defined by the 'All'
|
|
1109
|
-
// description in the package comment.
|
|
1110
|
-
// A return value of nil indicates no match.
|
|
1111
|
-
func (re *Regexp) FindAllStringIndex(s string, n int) [][]int {
|
|
1112
|
-
if n < 0 {
|
|
1113
|
-
n = len(s) + 1
|
|
1114
|
-
}
|
|
1115
|
-
var result [][]int
|
|
1116
|
-
re.allMatches(s, nil, n, func(match []int) {
|
|
1117
|
-
if result == nil {
|
|
1118
|
-
result = make([][]int, 0, startSize)
|
|
1119
|
-
}
|
|
1120
|
-
result = append(result, match[0:2])
|
|
1121
|
-
})
|
|
1122
|
-
return result
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
// FindAllSubmatch is the 'All' version of [Regexp.FindSubmatch]; it returns a slice
|
|
1126
|
-
// of all successive matches of the expression, as defined by the 'All'
|
|
1127
|
-
// description in the package comment.
|
|
1128
|
-
// A return value of nil indicates no match.
|
|
1129
|
-
func (re *Regexp) FindAllSubmatch(b []byte, n int) [][][]byte {
|
|
1130
|
-
if n < 0 {
|
|
1131
|
-
n = len(b) + 1
|
|
1132
|
-
}
|
|
1133
|
-
var result [][][]byte
|
|
1134
|
-
re.allMatches("", b, n, func(match []int) {
|
|
1135
|
-
if result == nil {
|
|
1136
|
-
result = make([][][]byte, 0, startSize)
|
|
1137
|
-
}
|
|
1138
|
-
slice := make([][]byte, len(match)/2)
|
|
1139
|
-
for j := range slice {
|
|
1140
|
-
if match[2*j] >= 0 {
|
|
1141
|
-
slice[j] = b[match[2*j]:match[2*j+1]:match[2*j+1]]
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
result = append(result, slice)
|
|
1145
|
-
})
|
|
1146
|
-
return result
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
// FindAllSubmatchIndex is the 'All' version of [Regexp.FindSubmatchIndex]; it returns
|
|
1150
|
-
// a slice of all successive matches of the expression, as defined by the
|
|
1151
|
-
// 'All' description in the package comment.
|
|
1152
|
-
// A return value of nil indicates no match.
|
|
1153
|
-
func (re *Regexp) FindAllSubmatchIndex(b []byte, n int) [][]int {
|
|
1154
|
-
if n < 0 {
|
|
1155
|
-
n = len(b) + 1
|
|
1156
|
-
}
|
|
1157
|
-
var result [][]int
|
|
1158
|
-
re.allMatches("", b, n, func(match []int) {
|
|
1159
|
-
if result == nil {
|
|
1160
|
-
result = make([][]int, 0, startSize)
|
|
1161
|
-
}
|
|
1162
|
-
result = append(result, match)
|
|
1163
|
-
})
|
|
1164
|
-
return result
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
// FindAllStringSubmatch is the 'All' version of [Regexp.FindStringSubmatch]; it
|
|
1168
|
-
// returns a slice of all successive matches of the expression, as defined by
|
|
1169
|
-
// the 'All' description in the package comment.
|
|
1170
|
-
// A return value of nil indicates no match.
|
|
1171
|
-
func (re *Regexp) FindAllStringSubmatch(s string, n int) [][]string {
|
|
1172
|
-
if n < 0 {
|
|
1173
|
-
n = len(s) + 1
|
|
1174
|
-
}
|
|
1175
|
-
var result [][]string
|
|
1176
|
-
re.allMatches(s, nil, n, func(match []int) {
|
|
1177
|
-
if result == nil {
|
|
1178
|
-
result = make([][]string, 0, startSize)
|
|
1179
|
-
}
|
|
1180
|
-
slice := make([]string, len(match)/2)
|
|
1181
|
-
for j := range slice {
|
|
1182
|
-
if match[2*j] >= 0 {
|
|
1183
|
-
slice[j] = s[match[2*j]:match[2*j+1]]
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
result = append(result, slice)
|
|
1187
|
-
})
|
|
1188
|
-
return result
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
// FindAllStringSubmatchIndex is the 'All' version of
|
|
1192
|
-
// [Regexp.FindStringSubmatchIndex]; it returns a slice of all successive matches of
|
|
1193
|
-
// the expression, as defined by the 'All' description in the package
|
|
1194
|
-
// comment.
|
|
1195
|
-
// A return value of nil indicates no match.
|
|
1196
|
-
func (re *Regexp) FindAllStringSubmatchIndex(s string, n int) [][]int {
|
|
1197
|
-
if n < 0 {
|
|
1198
|
-
n = len(s) + 1
|
|
1199
|
-
}
|
|
1200
|
-
var result [][]int
|
|
1201
|
-
re.allMatches(s, nil, n, func(match []int) {
|
|
1202
|
-
if result == nil {
|
|
1203
|
-
result = make([][]int, 0, startSize)
|
|
1204
|
-
}
|
|
1205
|
-
result = append(result, match)
|
|
1206
|
-
})
|
|
1207
|
-
return result
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
1275
|
// Split slices s into substrings separated by the expression and returns a slice of
|
|
1211
1276
|
// the substrings between those expression matches.
|
|
1212
1277
|
//
|
|
@@ -1224,11 +1289,9 @@ func (re *Regexp) FindAllStringSubmatchIndex(s string, n int) [][]int {
|
|
|
1224
1289
|
// - n == 0: the result is nil (zero substrings);
|
|
1225
1290
|
// - n < 0: all substrings.
|
|
1226
1291
|
func (re *Regexp) Split(s string, n int) []string {
|
|
1227
|
-
|
|
1228
1292
|
if n == 0 {
|
|
1229
1293
|
return nil
|
|
1230
1294
|
}
|
|
1231
|
-
|
|
1232
1295
|
if len(re.expr) > 0 && len(s) == 0 {
|
|
1233
1296
|
return []string{""}
|
|
1234
1297
|
}
|