parameters: (tokens, r=None)
return_statement: return ctokens
docstring: Convert from a Python list of strings into MITIE's NULL terminated char** array type.  
      Note that the memory returned by this object is managed by Python and doesn't need to be 
      freed by the user.
  
      r should be a range that indicates which part of tokens to convert.  If r is not given
      then it defaults to xrange(len(tokens)) which selects the entirety of tokens to convert.
docstring_summary: Convert from a Python list of strings into MITIE's NULL terminated char** array type.  
      Note that the memory returned by this object is managed by Python and doesn't need to be 
      freed by the user.
docstring_tokens: Convert from a Python list of strings into MITIE s NULL terminated char ** array type . Note that the memory returned by this object is managed by Python and doesn t need to be freed by the user .
function: def python_to_mitie_str_array(tokens, r=None):
      """Convert from a Python list of strings into MITIE's NULL terminated char** array type.  
      Note that the memory returned by this object is managed by Python and doesn't need to be 
      freed by the user.
  
      r should be a range that indicates which part of tokens to convert.  If r is not given
      then it defaults to xrange(len(tokens)) which selects the entirety of tokens to convert.
      """
      if r is None:
          r = xrange(len(tokens))
  
      ctokens = (ctypes.c_char_p*(len(r)+1))()
      i = 0
      for j in r:
          if isinstance(tokens[j], tuple):
              ctokens[i] = to_bytes(tokens[j][0])
          else:
              ctokens[i] = to_bytes(tokens[j])
          i += 1
      ctokens[i] = None
      return ctokens
function_tokens: def python_to_mitie_str_array ( tokens , r = None ) : if r is None : r = xrange ( len ( tokens ) ) ctokens = ( ctypes . c_char_p * ( len ( r ) + 1 ) ) ( ) i = 0 for j in r : if isinstance ( tokens [ j ] , tuple ) : ctokens [ i ] = to_bytes ( tokens [ j ] [ 0 ] ) else : ctokens [ i ] = to_bytes ( tokens [ j ] ) i += 1 ctokens [ i ] = None return ctokens