Generated by Cython 0.9.8 on Thu Jul 3 21:54:08 2008

Raw output: stupidlowercase.c

 1: 
 2: def stupid_lower_case(char* s):
static char __pyx_k_1[] = "A";
static char __pyx_k_2[] = "Z";
static char __pyx_k_3[] = "a";
static char __pyx_k_4[] = "A";

static PyObject *__pyx_pf_15stupidlowercase_stupid_lower_case(PyObject *__pyx_self, PyObject *__pyx_arg_s); /*proto*/
static PyObject *__pyx_pf_15stupidlowercase_stupid_lower_case(PyObject *__pyx_self, PyObject *__pyx_arg_s) {
  char *__pyx_v_s;
  Py_ssize_t __pyx_v_size;
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_r;
  PyObject *__pyx_1 = 0;
  Py_ssize_t __pyx_2 = 0;
  int __pyx_3;
  assert(__pyx_arg_s); {
    __pyx_v_s = __Pyx_PyBytes_AsString(__pyx_arg_s); if (unlikely((!__pyx_v_s) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L2;}
  }
  goto __pyx_L3;
  __pyx_L2:;
  __Pyx_AddTraceback("stupidlowercase.stupid_lower_case");
  return NULL;
  __pyx_L3:;
 3:     cdef Py_ssize_t size, i
 4: 
 5:     size = len(s)
  __pyx_1 = __Pyx_PyBytes_FromString(__pyx_v_s); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1;}
  __pyx_2 = PyObject_Length(__pyx_1); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1;}
  Py_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_v_size = __pyx_2;
 6:     for i in range(size):
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_size; __pyx_v_i+=1) {
 7:         if s[i] >= 'A' and s[i] <= 'Z':
    __pyx_3 = ((__pyx_v_s[__pyx_v_i]) >= 'A');
    if (__pyx_3) {
      __pyx_3 = ((__pyx_v_s[__pyx_v_i]) <= 'Z');
    }
    if (__pyx_3) {
 8:             s[i] += 'a' - 'A'
      (__pyx_v_s[__pyx_v_i]) += (__pyx_k_3 - __pyx_k_4);
      goto __pyx_L6;
    }
    __pyx_L6:;
  }
 9:     return s
  __pyx_1 = __Pyx_PyBytes_FromString(__pyx_v_s); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1;}
  __pyx_r = __pyx_1;
  __pyx_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; Py_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1:;
  Py_XDECREF(__pyx_1);
  __Pyx_AddTraceback("stupidlowercase.stupid_lower_case");
  __pyx_r = NULL;
  __pyx_L0:;
  return __pyx_r;
}