Parses a C struct’s members
Example:
require 'fiddle/import' include Fiddle::CParser #=> Object parse_struct_signature(['int i', 'char c']) #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]] parse_struct_signature(['char buffer[80]']) #=> [[[Fiddle::TYPE_CHAR, 80]], ["buffer"]]
Iterates through the header names in the header, passing capitalized header names to the code block.
Note that header names are capitalized systematically; capitalization may not match that used by the remote HTTP
server in its response.
Returns an enumerator if no block is given.
Given a name
in a name_with_underscores or a name-with-dashes format, returns the CamelCase version of name
.
If the name
is already CamelCased, nothing happens.
Examples:
require 'rss/utils' RSS::Utils.to_class_name("sample_name") # => "SampleName" RSS::Utils.to_class_name("with-dashes") # => "WithDashes" RSS::Utils.to_class_name("CamelCase") # => "CamelCase"
Turns email_address
into an OpenSSL::X509::Name
Whether to expect full paths in default gems - true for non-MRI ruby implementations
The short name of the ObjectId
, as defined in <openssl/objects.h>.
The long name of the ObjectId
, as defined in <openssl/objects.h>.
Adds path as the hash dir to be looked up by the store.