00001 
00002 
00003 
00022 #ifndef _lub_argv_h
00023 #define _lub_argv_h
00024 
00025 #include <stddef.h>
00026 
00027 #include "c_decl.h"
00028 #include "types.h"
00029 
00030 _BEGIN_C_DECL
00031 
00035 typedef struct lub_argv_s lub_argv_t;
00036 
00037 
00038 
00039 
00050 unsigned
00051     lub_argv_wordcount(
00055         const char *line
00056     );
00074 lub_argv_t *
00075     lub_argv_new(
00079         const char *line,
00083         size_t offset
00084     );
00085             
00086 void
00087     lub_argv_delete(lub_argv_t *instance);
00088 unsigned
00089     lub_argv__get_count(const lub_argv_t *instance);
00090 const char *
00091     lub_argv__get_arg(const lub_argv_t *instance,
00092                       unsigned          index);
00093 size_t
00094     lub_argv__get_offset(const lub_argv_t *instance,
00095                          unsigned          index);
00096 bool_t
00097     lub_argv__get_quoted(const lub_argv_t *instance,
00098                          unsigned          index);
00099 void
00100     lub_argv__set_arg(lub_argv_t *instance,
00101                       unsigned    index,
00102                       const char *arg);
00103 _END_C_DECL
00104 
00105 #endif 
00106