Define CBArgv class.  
More...
#include <string.h>
Go to the source code of this file.
Detailed Description
Define CBArgv class. 
- Copyright
 - Copyright (C) 2012 Steel Wheels Project 
 
Function Documentation
      
        
          | char CBCurrentCharInArgv  | 
          ( | 
          struct CBArgv *  | 
          src | ) | 
           | 
        
      
 
Get a character from current word. 
- Parameters:
 - 
  
    | src | Source argument vector  | 
  
   
 
 
      
        
          | static const char* CBCurrentWordInArgv  | 
          ( | 
          const struct CBArgv *  | 
          src | ) | 
           [inline, static] | 
        
      
 
Peek current word. 
- Returns:
 - Current word 
 
- Parameters:
 - 
  
    | src | Source argument vector  | 
  
   
 
 
      
        
          | unsigned int CBHasLongNameOption  | 
          ( | 
          const struct CBArgv *  | 
          src | ) | 
           | 
        
      
 
Check the next token is long-name-option or not. 
- Return values:
 - 
  
    | TRUE | The next token is started by '--'  | 
    | FALSE | The next token is not '--'  | 
  
   
- Parameters:
 - 
  
    | src | Source argument vector  | 
  
   
 
 
      
        
          | unsigned int CBHasShortNameOption  | 
          ( | 
          const struct CBArgv *  | 
          src | ) | 
           | 
        
      
 
Check the next token is short-name-option or not. 
- Return values:
 - 
  
    | TRUE | The next token is started by '-'  | 
    | FALSE | The next token is not '-'  | 
  
   
- Parameters:
 - 
  
    | src | Source argument vector  | 
  
   
 
 
      
        
          | void CBInitArgv  | 
          ( | 
          struct CBArgv *  | 
          dst,  | 
        
        
           | 
           | 
          unsigned int  | 
          argc,  | 
        
        
           | 
           | 
          const char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Initialize CBArgv data. 
- Parameters:
 - 
  
    | dst | Destination object  | 
    | argc | Count of arguments  | 
    | argv | Vector of arguments  | 
  
   
 
 
      
        
          | static unsigned int CBIsEndOfArgv  | 
          ( | 
          const struct CBArgv *  | 
          src | ) | 
           [inline, static] | 
        
      
 
Check the all arguments are poped or not. 
- Return values:
 - 
  
    | TRUE | All arguments are poped  | 
    | FALSE | Some arguments are remain before poping  | 
  
   
 
 
      
        
          | void CBPopCharInArgv  | 
          ( | 
          struct CBArgv *  | 
          src | ) | 
           | 
        
      
 
Pop a character from current word. 
- Parameters:
 - 
  
    | src | Source argument vector  | 
  
   
 
 
      
        
          | void CBPopWordInArgv  | 
          ( | 
          struct CBArgv *  | 
          src | ) | 
           | 
        
      
 
Drop current word and get next as current. 
- Parameters:
 - 
  
    | src | Source argument vector  | 
  
   
 
 
      
        
          | void CBSkipDashesInArgv  | 
          ( | 
          struct CBArgv *  | 
          src | ) | 
           | 
        
      
 
Skip 1 or 2 dashes from the current word. 
- Parameters:
 -