Index Page
cspice_eqstr
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_EQSTR returns a boolean indicating the equality
   of two input strings ignoring character case and embedded 
   spaces.

   For important details concerning this module's function, please refer to
   the CSPICE routine eqstr_c.

I/O

   
   Given:
   
      a,b   two arbitrary scalar strings
   
   the call:
   
      str_equal = cspice_exists( a, b )
   
   returns a boolean flagging the equality of the strings.
   
   IDL native code to perform the same operation:
   
      str_equal = strcmp( a, b, /FOLD_CASE )
   

Examples


   Any numerical results shown for this example may differ between
   platforms as the results depend on the SPICE kernels used as input
   and the machine specific arithmetic implementation.

   
      ;;
      ;; Case insensitive...
      ;;
      if ( cspice_eqstr( 'a', 'A' ) ) then print, 'Match'
   
      Match
   
   
      ;;
      ;; ...ignore embedded/trailing/leading space..
      ;;
      if ( cspice_eqstr( 'a ', 'A' ) ) then print, 'Match'
   
      Match
   
   
      if ( cspice_eqstr( 'a ', '  A' ) ) then print, 'Match'
   
      Match
   
   
      if ( cspice_eqstr( 'a a', 'AA' ) ) then print, 'Match'
   
      Match
   
   
      ;;
      ;; No match
      ;;
      if ( ~cspice_eqstr( 'a a', 'AAb' ) ) then print, 'No match'
   
      No match
   

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.0.1, 19-FEB-2008, EDW (JPL)

      Corrected typo in "No match"" example; replaced "not" with
      the logical negation operator "~".

   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries


   equivalent strings




Wed Apr  5 17:58:01 2017