datadog-ruby_core_source 3.3.7 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.datadog.md +5 -0
- data/datadog-ruby_core_source.gemspec +1 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/id.h +2 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/error.h +26 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/gc.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/parse.h +2 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/proc.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/sanitizers.h +24 -36
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/ast.h +10 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/extension.h +1 -1
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/version.h +2 -2
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/ractor_core.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/rubyparser.h +3 -1
- data/lib/datadog/ruby_core_source/version.rb +1 -1
- metadata +106 -209
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/id.h +0 -347
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/basic_operators.h +0 -64
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/bits.h +0 -568
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/fixnum.h +0 -184
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/gc.h +0 -322
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/imemo.h +0 -261
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/io.h +0 -143
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/ractor.h +0 -6
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/sanitizers.h +0 -326
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/string.h +0 -186
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/thread.h +0 -85
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/vm.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/method.h +0 -255
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/ast.h +0 -7524
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/defines.h +0 -242
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/diagnostic.h +0 -450
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/version.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism_compile.h +0 -99
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/ractor_core.h +0 -382
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/rubyparser.h +0 -1350
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/thread_pthread.h +0 -168
- data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_core.h +0 -2222
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/build_assert/build_assert.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/check_type/check_type.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/container_of/container_of.h +0 -142
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/list/list.h +0 -791
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/str/str.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/id_table.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/array.h +0 -152
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/bignum.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/class.h +0 -283
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/cmdlineopt.h +0 -65
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/compilers.h +0 -107
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/cont.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/error.h +0 -218
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/eval.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/hash.h +0 -192
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/inits.h +0 -47
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/load.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/missing.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/numeric.h +0 -274
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/object.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/parse.h +0 -129
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/proc.h +0 -30
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/rational.h +0 -71
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/re.h +0 -28
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/ruby_parser.h +0 -102
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/serial.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/signal.h +0 -24
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/st.h +0 -11
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/static_assert.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/struct.h +0 -127
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/symbol.h +0 -45
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/time.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/variable.h +0 -72
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/warnings.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/iseq.h +0 -340
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/node.h +0 -111
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/parser_st.h +0 -162
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/parser_value.h +0 -106
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/encoding.h +0 -283
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/extension.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/node.h +0 -129
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/options.h +0 -396
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/pack.h +0 -163
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/parser.h +0 -933
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/prettyprint.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/regexp.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/static_literals.h +0 -121
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_buffer.h +0 -218
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_char.h +0 -204
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_constant_pool.h +0 -218
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_integer.h +0 -126
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_list.h +0 -97
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_memchr.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_newline_list.h +0 -113
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_string.h +0 -190
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_strncasecmp.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_strpbrk.h +0 -46
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ruby_assert.h +0 -14
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ruby_atomic.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/shape.h +0 -234
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/thread_none.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/vm_debug.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/vm_opts.h +0 -67
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/check_type/check_type.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/container_of/container_of.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/list/list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/str/str.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/id_table.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/array.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/basic_operators.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/bignum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/bits.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/class.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/cmdlineopt.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/compar.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/compile.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/compilers.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/complex.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/cont.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/dir.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/enc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/encoding.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/enum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/enumerator.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/eval.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/file.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/fixnum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/hash.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/imemo.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/inits.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/io.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/load.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/loadpath.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/math.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/missing.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/numeric.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/object.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/process.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/ractor.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/random.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/range.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/rational.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/re.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/ruby_parser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/serial.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/signal.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/static_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/string.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/struct.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/symbol.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/thread.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/time.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/transcode.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/util.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/variable.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/vm.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/warnings.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/iseq.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/method.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/parser_st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/parser_value.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/defines.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/diagnostic.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/encoding.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/options.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/pack.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/parser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/prettyprint.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/prism.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/regexp.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/static_literals.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_buffer.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_char.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_constant_pool.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_integer.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_memchr.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_newline_list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_string.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_strncasecmp.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_strpbrk.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism_compile.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ruby_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ruby_atomic.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/shape.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/thread_none.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/thread_pthread.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/vm_core.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/vm_debug.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/vm_opts.h +0 -0
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @file prettyprint.h
|
3
|
-
*
|
4
|
-
* An AST node pretty-printer.
|
5
|
-
*/
|
6
|
-
#ifndef PRISM_PRETTYPRINT_H
|
7
|
-
#define PRISM_PRETTYPRINT_H
|
8
|
-
|
9
|
-
#include "prism/defines.h"
|
10
|
-
|
11
|
-
#ifdef PRISM_EXCLUDE_PRETTYPRINT
|
12
|
-
|
13
|
-
void pm_prettyprint(void);
|
14
|
-
|
15
|
-
#else
|
16
|
-
|
17
|
-
#include <stdio.h>
|
18
|
-
|
19
|
-
#include "prism/ast.h"
|
20
|
-
#include "prism/parser.h"
|
21
|
-
#include "prism/util/pm_buffer.h"
|
22
|
-
|
23
|
-
/**
|
24
|
-
* Pretty-prints the AST represented by the given node to the given buffer.
|
25
|
-
*
|
26
|
-
* @param output_buffer The buffer to write the pretty-printed AST to.
|
27
|
-
* @param parser The parser that parsed the AST.
|
28
|
-
* @param node The root node of the AST to pretty-print.
|
29
|
-
*/
|
30
|
-
PRISM_EXPORTED_FUNCTION void pm_prettyprint(pm_buffer_t *output_buffer, const pm_parser_t *parser, const pm_node_t *node);
|
31
|
-
|
32
|
-
#endif
|
33
|
-
|
34
|
-
#endif
|
@@ -1,43 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @file regexp.h
|
3
|
-
*
|
4
|
-
* A regular expression parser.
|
5
|
-
*/
|
6
|
-
#ifndef PRISM_REGEXP_H
|
7
|
-
#define PRISM_REGEXP_H
|
8
|
-
|
9
|
-
#include "prism/defines.h"
|
10
|
-
#include "prism/parser.h"
|
11
|
-
#include "prism/encoding.h"
|
12
|
-
#include "prism/util/pm_memchr.h"
|
13
|
-
#include "prism/util/pm_string.h"
|
14
|
-
|
15
|
-
#include <stdbool.h>
|
16
|
-
#include <stddef.h>
|
17
|
-
#include <string.h>
|
18
|
-
|
19
|
-
/**
|
20
|
-
* This callback is called when a named capture group is found.
|
21
|
-
*/
|
22
|
-
typedef void (*pm_regexp_name_callback_t)(const pm_string_t *name, void *data);
|
23
|
-
|
24
|
-
/**
|
25
|
-
* This callback is called when a parse error is found.
|
26
|
-
*/
|
27
|
-
typedef void (*pm_regexp_error_callback_t)(const uint8_t *start, const uint8_t *end, const char *message, void *data);
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Parse a regular expression.
|
31
|
-
*
|
32
|
-
* @param parser The parser that is currently being used.
|
33
|
-
* @param source The source code to parse.
|
34
|
-
* @param size The size of the source code.
|
35
|
-
* @param extended_mode Whether to parse the regular expression in extended mode.
|
36
|
-
* @param name_callback The optional callback to call when a named capture group is found.
|
37
|
-
* @param name_data The optional data to pass to the name callback.
|
38
|
-
* @param error_callback The callback to call when a parse error is found.
|
39
|
-
* @param error_data The data to pass to the error callback.
|
40
|
-
*/
|
41
|
-
PRISM_EXPORTED_FUNCTION void pm_regexp_parse(pm_parser_t *parser, const uint8_t *source, size_t size, bool extended_mode, pm_regexp_name_callback_t name_callback, void *name_data, pm_regexp_error_callback_t error_callback, void *error_data);
|
42
|
-
|
43
|
-
#endif
|
@@ -1,121 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @file static_literals.h
|
3
|
-
*
|
4
|
-
* A set of static literal nodes that can be checked for duplicates.
|
5
|
-
*/
|
6
|
-
#ifndef PRISM_STATIC_LITERALS_H
|
7
|
-
#define PRISM_STATIC_LITERALS_H
|
8
|
-
|
9
|
-
#include "prism/defines.h"
|
10
|
-
#include "prism/ast.h"
|
11
|
-
#include "prism/util/pm_newline_list.h"
|
12
|
-
|
13
|
-
#include <assert.h>
|
14
|
-
#include <stdbool.h>
|
15
|
-
|
16
|
-
/**
|
17
|
-
* An internal hash table for a set of nodes.
|
18
|
-
*/
|
19
|
-
typedef struct {
|
20
|
-
/** The array of nodes in the hash table. */
|
21
|
-
pm_node_t **nodes;
|
22
|
-
|
23
|
-
/** The size of the hash table. */
|
24
|
-
uint32_t size;
|
25
|
-
|
26
|
-
/** The space that has been allocated in the hash table. */
|
27
|
-
uint32_t capacity;
|
28
|
-
} pm_node_hash_t;
|
29
|
-
|
30
|
-
/**
|
31
|
-
* Certain sets of nodes (hash keys and when clauses) check for duplicate nodes
|
32
|
-
* to alert the user of potential issues. To do this, we keep a set of the nodes
|
33
|
-
* that have been seen so far, and compare whenever we find a new node.
|
34
|
-
*
|
35
|
-
* We bucket the nodes based on their type to minimize the number of comparisons
|
36
|
-
* that need to be performed.
|
37
|
-
*/
|
38
|
-
typedef struct {
|
39
|
-
/**
|
40
|
-
* This is the set of IntegerNode and SourceLineNode instances.
|
41
|
-
*/
|
42
|
-
pm_node_hash_t integer_nodes;
|
43
|
-
|
44
|
-
/**
|
45
|
-
* This is the set of FloatNode instances.
|
46
|
-
*/
|
47
|
-
pm_node_hash_t float_nodes;
|
48
|
-
|
49
|
-
/**
|
50
|
-
* This is the set of RationalNode and ImaginaryNode instances.
|
51
|
-
*/
|
52
|
-
pm_node_hash_t number_nodes;
|
53
|
-
|
54
|
-
/**
|
55
|
-
* This is the set of StringNode and SourceFileNode instances.
|
56
|
-
*/
|
57
|
-
pm_node_hash_t string_nodes;
|
58
|
-
|
59
|
-
/**
|
60
|
-
* This is the set of RegularExpressionNode instances.
|
61
|
-
*/
|
62
|
-
pm_node_hash_t regexp_nodes;
|
63
|
-
|
64
|
-
/**
|
65
|
-
* This is the set of SymbolNode instances.
|
66
|
-
*/
|
67
|
-
pm_node_hash_t symbol_nodes;
|
68
|
-
|
69
|
-
/**
|
70
|
-
* A pointer to the last TrueNode instance that was inserted, or NULL.
|
71
|
-
*/
|
72
|
-
pm_node_t *true_node;
|
73
|
-
|
74
|
-
/**
|
75
|
-
* A pointer to the last FalseNode instance that was inserted, or NULL.
|
76
|
-
*/
|
77
|
-
pm_node_t *false_node;
|
78
|
-
|
79
|
-
/**
|
80
|
-
* A pointer to the last NilNode instance that was inserted, or NULL.
|
81
|
-
*/
|
82
|
-
pm_node_t *nil_node;
|
83
|
-
|
84
|
-
/**
|
85
|
-
* A pointer to the last SourceEncodingNode instance that was inserted, or
|
86
|
-
* NULL.
|
87
|
-
*/
|
88
|
-
pm_node_t *source_encoding_node;
|
89
|
-
} pm_static_literals_t;
|
90
|
-
|
91
|
-
/**
|
92
|
-
* Add a node to the set of static literals.
|
93
|
-
*
|
94
|
-
* @param newline_list The list of newline offsets to use to calculate lines.
|
95
|
-
* @param start_line The line number that the parser starts on.
|
96
|
-
* @param literals The set of static literals to add the node to.
|
97
|
-
* @param node The node to add to the set.
|
98
|
-
* @param replace Whether to replace the previous node if one already exists.
|
99
|
-
* @return A pointer to the node that is being overwritten, if there is one.
|
100
|
-
*/
|
101
|
-
pm_node_t * pm_static_literals_add(const pm_newline_list_t *newline_list, int32_t start_line, pm_static_literals_t *literals, pm_node_t *node, bool replace);
|
102
|
-
|
103
|
-
/**
|
104
|
-
* Free the internal memory associated with the given static literals set.
|
105
|
-
*
|
106
|
-
* @param literals The set of static literals to free.
|
107
|
-
*/
|
108
|
-
void pm_static_literals_free(pm_static_literals_t *literals);
|
109
|
-
|
110
|
-
/**
|
111
|
-
* Create a string-based representation of the given static literal.
|
112
|
-
*
|
113
|
-
* @param buffer The buffer to write the string to.
|
114
|
-
* @param newline_list The list of newline offsets to use to calculate lines.
|
115
|
-
* @param start_line The line number that the parser starts on.
|
116
|
-
* @param encoding_name The name of the encoding of the source being parsed.
|
117
|
-
* @param node The node to create a string representation of.
|
118
|
-
*/
|
119
|
-
void pm_static_literal_inspect(pm_buffer_t *buffer, const pm_newline_list_t *newline_list, int32_t start_line, const char *encoding_name, const pm_node_t *node);
|
120
|
-
|
121
|
-
#endif
|
@@ -1,218 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @file pm_buffer.h
|
3
|
-
*
|
4
|
-
* A wrapper around a contiguous block of allocated memory.
|
5
|
-
*/
|
6
|
-
#ifndef PRISM_BUFFER_H
|
7
|
-
#define PRISM_BUFFER_H
|
8
|
-
|
9
|
-
#include "prism/defines.h"
|
10
|
-
#include "prism/util/pm_char.h"
|
11
|
-
|
12
|
-
#include <assert.h>
|
13
|
-
#include <stdbool.h>
|
14
|
-
#include <stdint.h>
|
15
|
-
#include <stdlib.h>
|
16
|
-
#include <string.h>
|
17
|
-
|
18
|
-
/**
|
19
|
-
* A pm_buffer_t is a simple memory buffer that stores data in a contiguous
|
20
|
-
* block of memory.
|
21
|
-
*/
|
22
|
-
typedef struct {
|
23
|
-
/** The length of the buffer in bytes. */
|
24
|
-
size_t length;
|
25
|
-
|
26
|
-
/** The capacity of the buffer in bytes that has been allocated. */
|
27
|
-
size_t capacity;
|
28
|
-
|
29
|
-
/** A pointer to the start of the buffer. */
|
30
|
-
char *value;
|
31
|
-
} pm_buffer_t;
|
32
|
-
|
33
|
-
/**
|
34
|
-
* Return the size of the pm_buffer_t struct.
|
35
|
-
*
|
36
|
-
* @returns The size of the pm_buffer_t struct.
|
37
|
-
*/
|
38
|
-
PRISM_EXPORTED_FUNCTION size_t pm_buffer_sizeof(void);
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Initialize a pm_buffer_t with the given capacity.
|
42
|
-
*
|
43
|
-
* @param buffer The buffer to initialize.
|
44
|
-
* @param capacity The capacity of the buffer.
|
45
|
-
* @returns True if the buffer was initialized successfully, false otherwise.
|
46
|
-
*/
|
47
|
-
bool pm_buffer_init_capacity(pm_buffer_t *buffer, size_t capacity);
|
48
|
-
|
49
|
-
/**
|
50
|
-
* Initialize a pm_buffer_t with its default values.
|
51
|
-
*
|
52
|
-
* @param buffer The buffer to initialize.
|
53
|
-
* @returns True if the buffer was initialized successfully, false otherwise.
|
54
|
-
*/
|
55
|
-
PRISM_EXPORTED_FUNCTION bool pm_buffer_init(pm_buffer_t *buffer);
|
56
|
-
|
57
|
-
/**
|
58
|
-
* Return the value of the buffer.
|
59
|
-
*
|
60
|
-
* @param buffer The buffer to get the value of.
|
61
|
-
* @returns The value of the buffer.
|
62
|
-
*/
|
63
|
-
PRISM_EXPORTED_FUNCTION char * pm_buffer_value(const pm_buffer_t *buffer);
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Return the length of the buffer.
|
67
|
-
*
|
68
|
-
* @param buffer The buffer to get the length of.
|
69
|
-
* @returns The length of the buffer.
|
70
|
-
*/
|
71
|
-
PRISM_EXPORTED_FUNCTION size_t pm_buffer_length(const pm_buffer_t *buffer);
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Append the given amount of space as zeroes to the buffer.
|
75
|
-
*
|
76
|
-
* @param buffer The buffer to append to.
|
77
|
-
* @param length The amount of space to append and zero.
|
78
|
-
*/
|
79
|
-
void pm_buffer_append_zeroes(pm_buffer_t *buffer, size_t length);
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Append a formatted string to the buffer.
|
83
|
-
*
|
84
|
-
* @param buffer The buffer to append to.
|
85
|
-
* @param format The format string to append.
|
86
|
-
* @param ... The arguments to the format string.
|
87
|
-
*/
|
88
|
-
void pm_buffer_append_format(pm_buffer_t *buffer, const char *format, ...) PRISM_ATTRIBUTE_FORMAT(2, 3);
|
89
|
-
|
90
|
-
/**
|
91
|
-
* Append a string to the buffer.
|
92
|
-
*
|
93
|
-
* @param buffer The buffer to append to.
|
94
|
-
* @param value The string to append.
|
95
|
-
* @param length The length of the string to append.
|
96
|
-
*/
|
97
|
-
void pm_buffer_append_string(pm_buffer_t *buffer, const char *value, size_t length);
|
98
|
-
|
99
|
-
/**
|
100
|
-
* Append a list of bytes to the buffer.
|
101
|
-
*
|
102
|
-
* @param buffer The buffer to append to.
|
103
|
-
* @param value The bytes to append.
|
104
|
-
* @param length The length of the bytes to append.
|
105
|
-
*/
|
106
|
-
void pm_buffer_append_bytes(pm_buffer_t *buffer, const uint8_t *value, size_t length);
|
107
|
-
|
108
|
-
/**
|
109
|
-
* Append a single byte to the buffer.
|
110
|
-
*
|
111
|
-
* @param buffer The buffer to append to.
|
112
|
-
* @param value The byte to append.
|
113
|
-
*/
|
114
|
-
void pm_buffer_append_byte(pm_buffer_t *buffer, uint8_t value);
|
115
|
-
|
116
|
-
/**
|
117
|
-
* Append a 32-bit unsigned integer to the buffer as a variable-length integer.
|
118
|
-
*
|
119
|
-
* @param buffer The buffer to append to.
|
120
|
-
* @param value The integer to append.
|
121
|
-
*/
|
122
|
-
void pm_buffer_append_varuint(pm_buffer_t *buffer, uint32_t value);
|
123
|
-
|
124
|
-
/**
|
125
|
-
* Append a 32-bit signed integer to the buffer as a variable-length integer.
|
126
|
-
*
|
127
|
-
* @param buffer The buffer to append to.
|
128
|
-
* @param value The integer to append.
|
129
|
-
*/
|
130
|
-
void pm_buffer_append_varsint(pm_buffer_t *buffer, int32_t value);
|
131
|
-
|
132
|
-
/**
|
133
|
-
* Append a double to the buffer.
|
134
|
-
*
|
135
|
-
* @param buffer The buffer to append to.
|
136
|
-
* @param value The double to append.
|
137
|
-
*/
|
138
|
-
void pm_buffer_append_double(pm_buffer_t *buffer, double value);
|
139
|
-
|
140
|
-
/**
|
141
|
-
* The different types of escaping that can be performed by the buffer when
|
142
|
-
* appending a slice of Ruby source code.
|
143
|
-
*/
|
144
|
-
typedef enum {
|
145
|
-
PM_BUFFER_ESCAPING_RUBY,
|
146
|
-
PM_BUFFER_ESCAPING_JSON
|
147
|
-
} pm_buffer_escaping_t;
|
148
|
-
|
149
|
-
/**
|
150
|
-
* Append a slice of source code to the buffer.
|
151
|
-
*
|
152
|
-
* @param buffer The buffer to append to.
|
153
|
-
* @param source The source code to append.
|
154
|
-
* @param length The length of the source code to append.
|
155
|
-
* @param escaping The type of escaping to perform.
|
156
|
-
*/
|
157
|
-
void pm_buffer_append_source(pm_buffer_t *buffer, const uint8_t *source, size_t length, pm_buffer_escaping_t escaping);
|
158
|
-
|
159
|
-
/**
|
160
|
-
* Prepend the given string to the buffer.
|
161
|
-
*
|
162
|
-
* @param buffer The buffer to prepend to.
|
163
|
-
* @param value The string to prepend.
|
164
|
-
* @param length The length of the string to prepend.
|
165
|
-
*/
|
166
|
-
void pm_buffer_prepend_string(pm_buffer_t *buffer, const char *value, size_t length);
|
167
|
-
|
168
|
-
/**
|
169
|
-
* Concatenate one buffer onto another.
|
170
|
-
*
|
171
|
-
* @param destination The buffer to concatenate onto.
|
172
|
-
* @param source The buffer to concatenate.
|
173
|
-
*/
|
174
|
-
void pm_buffer_concat(pm_buffer_t *destination, const pm_buffer_t *source);
|
175
|
-
|
176
|
-
/**
|
177
|
-
* Clear the buffer by reducing its size to 0. This does not free the allocated
|
178
|
-
* memory, but it does allow the buffer to be reused.
|
179
|
-
*
|
180
|
-
* @param buffer The buffer to clear.
|
181
|
-
*/
|
182
|
-
void pm_buffer_clear(pm_buffer_t *buffer);
|
183
|
-
|
184
|
-
/**
|
185
|
-
* Strip the whitespace from the end of the buffer.
|
186
|
-
*
|
187
|
-
* @param buffer The buffer to strip.
|
188
|
-
*/
|
189
|
-
void pm_buffer_rstrip(pm_buffer_t *buffer);
|
190
|
-
|
191
|
-
/**
|
192
|
-
* Checks if the buffer includes the given value.
|
193
|
-
*
|
194
|
-
* @param buffer The buffer to check.
|
195
|
-
* @param value The value to check for.
|
196
|
-
* @returns The index of the first occurrence of the value in the buffer, or
|
197
|
-
* SIZE_MAX if the value is not found.
|
198
|
-
*/
|
199
|
-
size_t pm_buffer_index(const pm_buffer_t *buffer, char value);
|
200
|
-
|
201
|
-
/**
|
202
|
-
* Insert the given string into the buffer at the given index.
|
203
|
-
*
|
204
|
-
* @param buffer The buffer to insert into.
|
205
|
-
* @param index The index to insert at.
|
206
|
-
* @param value The string to insert.
|
207
|
-
* @param length The length of the string to insert.
|
208
|
-
*/
|
209
|
-
void pm_buffer_insert(pm_buffer_t *buffer, size_t index, const char *value, size_t length);
|
210
|
-
|
211
|
-
/**
|
212
|
-
* Free the memory associated with the buffer.
|
213
|
-
*
|
214
|
-
* @param buffer The buffer to free.
|
215
|
-
*/
|
216
|
-
PRISM_EXPORTED_FUNCTION void pm_buffer_free(pm_buffer_t *buffer);
|
217
|
-
|
218
|
-
#endif
|
@@ -1,204 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @file pm_char.h
|
3
|
-
*
|
4
|
-
* Functions for working with characters and strings.
|
5
|
-
*/
|
6
|
-
#ifndef PRISM_CHAR_H
|
7
|
-
#define PRISM_CHAR_H
|
8
|
-
|
9
|
-
#include "prism/defines.h"
|
10
|
-
#include "prism/util/pm_newline_list.h"
|
11
|
-
|
12
|
-
#include <stdbool.h>
|
13
|
-
#include <stddef.h>
|
14
|
-
|
15
|
-
/**
|
16
|
-
* Returns the number of characters at the start of the string that are
|
17
|
-
* whitespace. Disallows searching past the given maximum number of characters.
|
18
|
-
*
|
19
|
-
* @param string The string to search.
|
20
|
-
* @param length The maximum number of characters to search.
|
21
|
-
* @return The number of characters at the start of the string that are
|
22
|
-
* whitespace.
|
23
|
-
*/
|
24
|
-
size_t pm_strspn_whitespace(const uint8_t *string, ptrdiff_t length);
|
25
|
-
|
26
|
-
/**
|
27
|
-
* Returns the number of characters at the start of the string that are
|
28
|
-
* whitespace while also tracking the location of each newline. Disallows
|
29
|
-
* searching past the given maximum number of characters.
|
30
|
-
*
|
31
|
-
* @param string The string to search.
|
32
|
-
* @param length The maximum number of characters to search.
|
33
|
-
* @param newline_list The list of newlines to populate.
|
34
|
-
* @return The number of characters at the start of the string that are
|
35
|
-
* whitespace.
|
36
|
-
*/
|
37
|
-
size_t pm_strspn_whitespace_newlines(const uint8_t *string, ptrdiff_t length, pm_newline_list_t *newline_list);
|
38
|
-
|
39
|
-
/**
|
40
|
-
* Returns the number of characters at the start of the string that are inline
|
41
|
-
* whitespace. Disallows searching past the given maximum number of characters.
|
42
|
-
*
|
43
|
-
* @param string The string to search.
|
44
|
-
* @param length The maximum number of characters to search.
|
45
|
-
* @return The number of characters at the start of the string that are inline
|
46
|
-
* whitespace.
|
47
|
-
*/
|
48
|
-
size_t pm_strspn_inline_whitespace(const uint8_t *string, ptrdiff_t length);
|
49
|
-
|
50
|
-
/**
|
51
|
-
* Returns the number of characters at the start of the string that are decimal
|
52
|
-
* digits. Disallows searching past the given maximum number of characters.
|
53
|
-
*
|
54
|
-
* @param string The string to search.
|
55
|
-
* @param length The maximum number of characters to search.
|
56
|
-
* @return The number of characters at the start of the string that are decimal
|
57
|
-
* digits.
|
58
|
-
*/
|
59
|
-
size_t pm_strspn_decimal_digit(const uint8_t *string, ptrdiff_t length);
|
60
|
-
|
61
|
-
/**
|
62
|
-
* Returns the number of characters at the start of the string that are
|
63
|
-
* hexadecimal digits. Disallows searching past the given maximum number of
|
64
|
-
* characters.
|
65
|
-
*
|
66
|
-
* @param string The string to search.
|
67
|
-
* @param length The maximum number of characters to search.
|
68
|
-
* @return The number of characters at the start of the string that are
|
69
|
-
* hexadecimal digits.
|
70
|
-
*/
|
71
|
-
size_t pm_strspn_hexadecimal_digit(const uint8_t *string, ptrdiff_t length);
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Returns the number of characters at the start of the string that are octal
|
75
|
-
* digits or underscores. Disallows searching past the given maximum number of
|
76
|
-
* characters.
|
77
|
-
*
|
78
|
-
* If multiple underscores are found in a row or if an underscore is
|
79
|
-
* found at the end of the number, then the invalid pointer is set to the index
|
80
|
-
* of the first invalid underscore.
|
81
|
-
*
|
82
|
-
* @param string The string to search.
|
83
|
-
* @param length The maximum number of characters to search.
|
84
|
-
* @param invalid The pointer to set to the index of the first invalid
|
85
|
-
* underscore.
|
86
|
-
* @return The number of characters at the start of the string that are octal
|
87
|
-
* digits or underscores.
|
88
|
-
*/
|
89
|
-
size_t pm_strspn_octal_number(const uint8_t *string, ptrdiff_t length, const uint8_t **invalid);
|
90
|
-
|
91
|
-
/**
|
92
|
-
* Returns the number of characters at the start of the string that are decimal
|
93
|
-
* digits or underscores. Disallows searching past the given maximum number of
|
94
|
-
* characters.
|
95
|
-
*
|
96
|
-
* If multiple underscores are found in a row or if an underscore is
|
97
|
-
* found at the end of the number, then the invalid pointer is set to the index
|
98
|
-
* of the first invalid underscore.
|
99
|
-
*
|
100
|
-
* @param string The string to search.
|
101
|
-
* @param length The maximum number of characters to search.
|
102
|
-
* @param invalid The pointer to set to the index of the first invalid
|
103
|
-
* underscore.
|
104
|
-
* @return The number of characters at the start of the string that are decimal
|
105
|
-
* digits or underscores.
|
106
|
-
*/
|
107
|
-
size_t pm_strspn_decimal_number(const uint8_t *string, ptrdiff_t length, const uint8_t **invalid);
|
108
|
-
|
109
|
-
/**
|
110
|
-
* Returns the number of characters at the start of the string that are
|
111
|
-
* hexadecimal digits or underscores. Disallows searching past the given maximum
|
112
|
-
* number of characters.
|
113
|
-
*
|
114
|
-
* If multiple underscores are found in a row or if an underscore is
|
115
|
-
* found at the end of the number, then the invalid pointer is set to the index
|
116
|
-
* of the first invalid underscore.
|
117
|
-
*
|
118
|
-
* @param string The string to search.
|
119
|
-
* @param length The maximum number of characters to search.
|
120
|
-
* @param invalid The pointer to set to the index of the first invalid
|
121
|
-
* underscore.
|
122
|
-
* @return The number of characters at the start of the string that are
|
123
|
-
* hexadecimal digits or underscores.
|
124
|
-
*/
|
125
|
-
size_t pm_strspn_hexadecimal_number(const uint8_t *string, ptrdiff_t length, const uint8_t **invalid);
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Returns the number of characters at the start of the string that are regexp
|
129
|
-
* options. Disallows searching past the given maximum number of characters.
|
130
|
-
*
|
131
|
-
* @param string The string to search.
|
132
|
-
* @param length The maximum number of characters to search.
|
133
|
-
* @return The number of characters at the start of the string that are regexp
|
134
|
-
* options.
|
135
|
-
*/
|
136
|
-
size_t pm_strspn_regexp_option(const uint8_t *string, ptrdiff_t length);
|
137
|
-
|
138
|
-
/**
|
139
|
-
* Returns the number of characters at the start of the string that are binary
|
140
|
-
* digits or underscores. Disallows searching past the given maximum number of
|
141
|
-
* characters.
|
142
|
-
*
|
143
|
-
* If multiple underscores are found in a row or if an underscore is
|
144
|
-
* found at the end of the number, then the invalid pointer is set to the index
|
145
|
-
* of the first invalid underscore.
|
146
|
-
*
|
147
|
-
* @param string The string to search.
|
148
|
-
* @param length The maximum number of characters to search.
|
149
|
-
* @param invalid The pointer to set to the index of the first invalid
|
150
|
-
* underscore.
|
151
|
-
* @return The number of characters at the start of the string that are binary
|
152
|
-
* digits or underscores.
|
153
|
-
*/
|
154
|
-
size_t pm_strspn_binary_number(const uint8_t *string, ptrdiff_t length, const uint8_t **invalid);
|
155
|
-
|
156
|
-
/**
|
157
|
-
* Returns true if the given character is a whitespace character.
|
158
|
-
*
|
159
|
-
* @param b The character to check.
|
160
|
-
* @return True if the given character is a whitespace character.
|
161
|
-
*/
|
162
|
-
bool pm_char_is_whitespace(const uint8_t b);
|
163
|
-
|
164
|
-
/**
|
165
|
-
* Returns true if the given character is an inline whitespace character.
|
166
|
-
*
|
167
|
-
* @param b The character to check.
|
168
|
-
* @return True if the given character is an inline whitespace character.
|
169
|
-
*/
|
170
|
-
bool pm_char_is_inline_whitespace(const uint8_t b);
|
171
|
-
|
172
|
-
/**
|
173
|
-
* Returns true if the given character is a binary digit.
|
174
|
-
*
|
175
|
-
* @param b The character to check.
|
176
|
-
* @return True if the given character is a binary digit.
|
177
|
-
*/
|
178
|
-
bool pm_char_is_binary_digit(const uint8_t b);
|
179
|
-
|
180
|
-
/**
|
181
|
-
* Returns true if the given character is an octal digit.
|
182
|
-
*
|
183
|
-
* @param b The character to check.
|
184
|
-
* @return True if the given character is an octal digit.
|
185
|
-
*/
|
186
|
-
bool pm_char_is_octal_digit(const uint8_t b);
|
187
|
-
|
188
|
-
/**
|
189
|
-
* Returns true if the given character is a decimal digit.
|
190
|
-
*
|
191
|
-
* @param b The character to check.
|
192
|
-
* @return True if the given character is a decimal digit.
|
193
|
-
*/
|
194
|
-
bool pm_char_is_decimal_digit(const uint8_t b);
|
195
|
-
|
196
|
-
/**
|
197
|
-
* Returns true if the given character is a hexadecimal digit.
|
198
|
-
*
|
199
|
-
* @param b The character to check.
|
200
|
-
* @return True if the given character is a hexadecimal digit.
|
201
|
-
*/
|
202
|
-
bool pm_char_is_hexadecimal_digit(const uint8_t b);
|
203
|
-
|
204
|
-
#endif
|