Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Fiddle
/
CParser
/
//opt/alt/ruby27/share/ri/system/Fiddle/CParser/parse_ctype-i.ri
U:RDoc::AnyMethod[iI"parse_ctype:ETI" Fiddle::CParser#parse_ctype;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NGiven a String of C type +ty+, returns the corresponding Fiddle constant.;To:RDoc::Markup::BlankLine o; ; [I"N+ty+ can also accept an Array of C type Strings, and will be returned in ;TI"a corresponding Array.;T@o; ; [I"JIf Hash +tymap+ is provided, +ty+ is expected to be the key, and the ;TI".value will be the C type to be looked up.;T@o; ; [I" Example:;To:RDoc::Markup::Verbatim; [I"require 'fiddle/import' ;TI" ;TI"include Fiddle::CParser ;TI" #=> Object ;TI" ;TI"parse_ctype('int') ;TI" #=> Fiddle::TYPE_INT ;TI" ;TI" parse_ctype('double diff') ;TI" #=> Fiddle::TYPE_DOUBLE ;TI" ;TI"'parse_ctype('unsigned char byte') ;TI" #=> -Fiddle::TYPE_CHAR ;TI" ;TI"-parse_ctype('const char* const argv[]') ;TI" #=> -Fiddle::TYPE_VOIDP;T:@format0: @fileI"%ext/fiddle/lib/fiddle/cparser.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(ty, tymap=nil);T@,FI"CParser;TcRDoc::NormalModule00