stringop.h
Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
00008 All rights reserved.
00009 
00010 This file is part of the VLFeat library and is made available under
00011 the terms of the BSD license (see the COPYING file).
00012 */
00013 
00014 #ifndef VL_STRINGOP_H
00015 #define VL_STRINGOP_H
00016 
00017 #include "generic.h"
00018 
00020 enum {
00021   VL_PROT_UNKNOWN = -1, 
00022   VL_PROT_NONE    =  0, 
00023   VL_PROT_ASCII,        
00024   VL_PROT_BINARY        
00025 } ;
00026 
00027 
00028 VL_EXPORT vl_size vl_string_copy (char *destination, vl_size destinationSize, char const *source) ;
00029 VL_EXPORT vl_size vl_string_copy_sub (char *destination, vl_size destinationSize,
00030                                       char const *beginning, char const *end) ;
00031 VL_EXPORT char *vl_string_parse_protocol (char const *string, int *protocol) ;
00032 VL_EXPORT char const *vl_string_protocol_name (int prot) ;
00033 VL_EXPORT vl_size vl_string_basename (char *destination, vl_size destinationSize,
00034                                       char const *source, vl_size maxNumStrippedExtension) ;
00035 VL_EXPORT vl_size vl_string_replace_wildcard (char * destination, vl_size destinationSize,
00036                                               char const *src, char wildcardChar, char escapeChar,
00037                                               char const *replacement) ;
00038 VL_EXPORT char *vl_string_find_char_rev (char const *beginning, char const *end, char c) ;
00039 VL_EXPORT vl_size vl_string_length (char const *string) ;
00040 VL_EXPORT int vl_string_casei_cmp (const char *string1, const char *string2) ;
00041 
00046 typedef struct _VlEnumerator
00047 {
00048   char const *name ; 
00049   vl_index value ;   
00050 } VlEnumerator ;
00051 
00052 VL_EXPORT VlEnumerator *vl_enumeration_get (VlEnumerator const *enumeration, char const *name) ;
00053 VL_EXPORT VlEnumerator *vl_enumeration_get_casei (VlEnumerator const *enumeration, char const *name) ;
00054 VL_EXPORT VlEnumerator *vl_enumeration_get_by_value (VlEnumerator const *enumeration, vl_index value) ;
00057 /* VL_STRINGOP_H */
00058 #endif


libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:51