304件ヒット
[301-304件を表示]
(0.035秒)
ライブラリ
- ビルトイン (12)
- json (228)
- openssl (12)
-
ripper
/ lexer (16) -
rubygems
/ user _ interaction (36)
クラス
-
Encoding
:: Converter (12) -
Gem
:: StreamUI (36) -
JSON
:: State (120) -
OpenSSL
:: SSL :: SSLSocket (12) -
Ripper
:: Lexer (16)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12)
キーワード
- alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
array
_ nl (12) - generate (12)
- indent (12)
- indent= (12)
-
insert
_ output (12) - lex (8)
-
object
_ nl (12) -
object
_ nl= (12) - parse (8)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
to
_ json (108)
検索結果
-
Encoding
:: Converter # insert _ output(string) -> nil (114.0) -
変換器内のバッファに文字列を挿入します。 バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
...、状態を更新します。
このメソッドは変換に際してエラーが発生した際にのみ利用されるべきです。
@param string 挿入する文字列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
src = "HIRAGANA LETTER A is \u{3042}."
dst = ""
p ec.p......ion
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$!$H".force_encoding("ISO-2022-JP"), "\xE3\ x80\x82"]
ec.insert_output "?" # state change required to output "?".
p ec.primitive_convert(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$!$H\e(B?\e$B!#\e...