Module KyotoCabinet
In: kyotocabinet.rb

Namespace of Kyoto Cabinet.

Methods

atof   atoi   atoix   conv_str   hash_fnv   hash_murmur  

Classes and Modules

Class KyotoCabinet::Cursor
Class KyotoCabinet::DB
Class KyotoCabinet::Error
Class KyotoCabinet::FileProcessor
Class KyotoCabinet::Visitor

Constants

VERSION = "x.y.z"   The version information

Public Instance methods

Convert a string to a real number.

  • @param str the string.
  • @return the real number. If the string does not contain numeric expression, 0.0 is returned.

Convert a string to an integer.

  • @param str the string.
  • @return the integer. If the string does not contain numeric expression, 0 is returned.

Convert a string with a metric prefix to an integer.

  • @param str the string, which can be trailed by a binary metric prefix. “K”, “M”, “G”, “T”, “P”, and “E” are supported. They are case-insensitive.
  • @return the integer. If the string does not contain numeric expression, 0 is returned. If the integer overflows the domain, INT64_MAX or INT64_MIN is returned according to the sign.

Convert any object to a string.

  • @param obj the object.
  • @return the result string.

Get the hash value of a string by FNV hashing.

  • @param str the string.
  • @return the hash value.

Get the hash value of a string by MurMur hashing.

  • @param str the string.
  • @return the hash value.