Polaris: string_util.cc File Reference

string_util.cc File Reference

Go to the source code of this file.

Functions

List< StringElem > * split (const String &orig_string, const char *delims)
 Returns a list of strings which are separated by the delimiters.
const char * convert_case (const char *s)
 Convert the string to the output case, and return a pointer to a static buffer.
char * strip_outer_quotes (char *s)
 Strip off the outer quotes from a Fortran string constant.


Function Documentation

List<StringElem>* split const String orig_string,
const char *  delims
 

Returns a list of strings which are separated by the delimiters.

Definition at line 10 of file string_util.cc.

References List< T >::ins_last().

Referenced by main(), and open_output_file().

const char* convert_case const char *  s  ) 
 

Convert the string to the output case, and return a pointer to a static buffer.

DO NOT deallocate this buffer.

Definition at line 47 of file string_util.cc.

References switch_value().

Referenced by IDExpr::print_debug(), InlineObject::remap_arg_names(), Equivalence::write(), and CommonBlockDict::write().

char* strip_outer_quotes char *  s  ) 
 

Strip off the outer quotes from a Fortran string constant.

For example: 'XYZ' -> XYZ If the character string doesn't have a quote at the front and back, return the original string.

Definition at line 72 of file string_util.cc.

References pmalloc().

 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:31 2005