U:RDoc::AnyMethod[iI"parse_ctype:EFI" Fiddle::CParser#parse_ctype;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"NGiven a String of C type +ty+, returns the corresponding Fiddle constant.;To:RDoc::Markup::BlankLineo; ; [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:;T@o:RDoc::Markup::Verbatim; [I"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;FcRDoc::NormalModule00