Functions
strings.cc File Reference
#include "typelib.hh"
#include <string>
Include dependency graph for strings.cc:

Go to the source code of this file.

Functions

static bool is_string_handler (Registry const &registry, Type const &type, bool known_size=false)
static void string_buffer_get (Value const &value, char *&buffer, string::size_type &size)
static VALUE value_from_string (VALUE mod, VALUE self, VALUE from, VALUE known_good_type)
static VALUE value_string_handler_p (VALUE self)
static VALUE value_to_string (VALUE mod, VALUE self, VALUE known_good_type)

Function Documentation

static bool is_string_handler ( Registry const &  registry,
Type const &  type,
bool  known_size = false 
) [static]

Definition at line 8 of file strings.cc.

static void string_buffer_get ( Value const &  value,
char *&  buffer,
string::size_type &  size 
) [static]

Definition at line 27 of file strings.cc.

static VALUE value_from_string ( VALUE  mod,
VALUE  self,
VALUE  from,
VALUE  known_good_type 
) [static]

Definition at line 55 of file strings.cc.

static VALUE value_string_handler_p ( VALUE  self) [static]

Definition at line 42 of file strings.cc.

static VALUE value_to_string ( VALUE  mod,
VALUE  self,
VALUE  known_good_type 
) [static]

Converts a C string to a Ruby string. NEVER call that directly. It is used to define #to_str on the relevant instances of Type

Definition at line 81 of file strings.cc.



typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:41