~maria-captains/maria/mysql-6.0-backup

« back to all changes in this revision

Viewing changes to strings/ctype-mb.c

  • Committer: Thava Alagu
  • Date: 2010-03-11 19:18:17 UTC
  • mfrom: (3719.14.62 mysql-6.0-codebase)
  • Revision ID: thavamuni.alagu@sun.com-20100311191817-5nigmq884xo9fuut
Merge from mysql-6.0-codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
 
467
467
/* BINARY collations handlers for MB charsets */
468
468
 
469
 
int my_strnncoll_mb_bin(CHARSET_INFO * cs __attribute__((unused)),
470
 
                        const uchar *s, size_t slen,
471
 
                        const uchar *t, size_t tlen,
472
 
                        my_bool t_is_prefix)
 
469
int
 
470
my_strnncoll_mb_bin(CHARSET_INFO * cs __attribute__((unused)),
 
471
                    const uchar *s, size_t slen,
 
472
                    const uchar *t, size_t tlen,
 
473
                    my_bool t_is_prefix)
473
474
{
474
475
  size_t len=min(slen,tlen);
475
476
  int cmp= memcmp(s,t,len);
502
503
    0 if strings are equal
503
504
*/
504
505
 
505
 
int my_strnncollsp_mb_bin(CHARSET_INFO * cs __attribute__((unused)),
506
 
                          const uchar *a, size_t a_length,
507
 
                          const uchar *b, size_t b_length,
508
 
                          my_bool diff_if_only_endspace_difference)
 
506
int
 
507
my_strnncollsp_mb_bin(CHARSET_INFO * cs __attribute__((unused)),
 
508
                      const uchar *a, size_t a_length, 
 
509
                      const uchar *b, size_t b_length,
 
510
                      my_bool diff_if_only_endspace_difference)
509
511
{
510
512
  const uchar *end;
511
513
  size_t length;
652
654
}
653
655
 
654
656
 
655
 
int my_strcasecmp_mb_bin(CHARSET_INFO * cs __attribute__((unused)),
656
 
                         const char *s, const char *t)
 
657
int
 
658
my_strcasecmp_mb_bin(CHARSET_INFO * cs __attribute__((unused)),
 
659
                     const char *s, const char *t)
657
660
{
658
661
  return strcmp(s,t);
659
662
}
660
663
 
661
664
 
662
 
void my_hash_sort_mb_bin(CHARSET_INFO *cs __attribute__((unused)),
663
 
                         const uchar *key, size_t len,ulong *nr1, ulong *nr2)
 
665
void
 
666
my_hash_sort_mb_bin(CHARSET_INFO *cs __attribute__((unused)),
 
667
                    const uchar *key, size_t len,ulong *nr1, ulong *nr2)
664
668
{
665
669
  const uchar *pos = key;
666
670
  
878
882
}
879
883
 
880
884
 
881
 
int my_wildcmp_mb_bin(CHARSET_INFO *cs,
882
 
                      const char *str,const char *str_end,
883
 
                      const char *wildstr,const char *wildend,
884
 
                      int escape, int w_one, int w_many)
 
885
int
 
886
my_wildcmp_mb_bin(CHARSET_INFO *cs,
 
887
                  const char *str,const char *str_end,
 
888
                  const char *wildstr,const char *wildend,
 
889
                  int escape, int w_one, int w_many)
885
890
{
886
891
  int result= -1;                               /* Not found, using wildcards */
887
892