~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/hex.cc

  • Committer: Monty Taylor
  • Date: 2009-12-21 04:32:56 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091221043256-n7ii7ynwsebr1r47
Removed things from server_includes.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include CSTDINT_H
23
23
#include <drizzled/function/str/hex.h>
24
24
 
 
25
/**
 
26
  convert a hex digit into number.
 
27
*/
 
28
static int hexchar_to_int(char c)
 
29
{
 
30
  if (c <= '9' && c >= '0')
 
31
    return c-'0';
 
32
  c|=32;
 
33
  if (c <= 'f' && c >= 'a')
 
34
    return c-'a'+10;
 
35
  return -1;
 
36
}
 
37
 
25
38
String *Item_func_hex::val_str(String *str)
26
39
{
27
40
  String *res;