module JSON::TruffleRuby::Generator
Constants
- SCRIPT_SAFE_ESCAPE_PATTERN
- SCRIPT_SAFE_MAP
Public Class Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/json-2.10.2/lib/json/truffle_ruby/generator.rb, line 92 def self.valid_utf8?(string) encoding = string.encoding (encoding == Encoding::UTF_8 || encoding == Encoding::ASCII) && string.valid_encoding? end