Back to index

glibc  2.9
Functions
gconv_charset.h File Reference
#include <ctype.h>
#include <locale.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void strip (char *wp, const char *s)
static char * __attribute__ ((unused, always_inline)) upstr(char *dst

Function Documentation

static char* __attribute__ ( (unused, always_inline)  ) [inline, static]
static void strip ( char *  wp,
const char *  s 
) [static]

Definition at line 26 of file gconv_charset.h.

{
  int slash_count = 0;

  while (*s != '\0')
    {
      if (__isalnum_l (*s, _nl_C_locobj_ptr)
         || *s == '_' || *s == '-' || *s == '.' || *s == ',' || *s == ':')
       *wp++ = __toupper_l (*s, _nl_C_locobj_ptr);
      else if (*s == '/')
       {
         if (++slash_count == 3)
           break;
         *wp++ = '/';
       }
      ++s;
    }

  while (slash_count++ < 2)
    *wp++ = '/';

  *wp = '\0';
}

Here is the caller graph for this function: