Commit 13257868 authored by unknown's avatar unknown
Browse files

Incorporating new faster string->number converter functions

into MY_CHARSET_INFO structure.

parent c0bb6a38
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -184,7 +184,8 @@ typedef struct my_charset_handler_st
			 int base, char **e, int *err);
  double      (*strntod)(struct charset_info_st *, char *s, uint l, char **e,
			 int *err);
  
  longlong (*my_strtoll10)(struct charset_info_st *cs,
                           const char *nptr, char **endptr, int *error);
  ulong        (*scan)(struct charset_info_st *, const char *b, const char *e,
		       int sq);
} MY_CHARSET_HANDLER;
@@ -303,6 +304,11 @@ int my_long10_to_str_8bit(CHARSET_INFO *, char *to, uint l, int radix,
int my_longlong10_to_str_8bit(CHARSET_INFO *, char *to, uint l, int radix,
			      longlong val);

longlong my_strtoll10_8bit(CHARSET_INFO *cs,
                           const char *nptr, char **endptr, int *error);
longlong my_strtoll10_ucs2(CHARSET_INFO *cs, 
                           const char *nptr, char **endptr, int *error);

void my_fill_8bit(CHARSET_INFO *cs, char* to, uint l, int fill);

my_bool  my_like_range_simple(CHARSET_INFO *cs,
+1 −0
Original line number Diff line number Diff line
@@ -6306,6 +6306,7 @@ static MY_CHARSET_HANDLER my_charset_big5_handler=
  my_strntoll_8bit,
  my_strntoull_8bit,
  my_strntod_8bit,
  my_strtoll10_8bit,
  my_scan_8bit
};

+1 −0
Original line number Diff line number Diff line
@@ -465,6 +465,7 @@ static MY_CHARSET_HANDLER my_charset_handler=
    my_strntoll_8bit,
    my_strntoull_8bit,
    my_strntod_8bit,
    my_strtoll10_8bit,
    my_scan_8bit
};

+1 −0
Original line number Diff line number Diff line
@@ -8673,6 +8673,7 @@ static MY_CHARSET_HANDLER my_charset_handler=
  my_strntoll_8bit,
  my_strntoull_8bit,
  my_strntod_8bit,
  my_strtoll10_8bit,
  my_scan_8bit
};

+1 −0
Original line number Diff line number Diff line
@@ -5724,6 +5724,7 @@ static MY_CHARSET_HANDLER my_charset_handler=
  my_strntoll_8bit,
  my_strntoull_8bit,
  my_strntod_8bit,
  my_strtoll10_8bit,
  my_scan_8bit
};

Loading