Menu

Home

Mark Hobley

This library provides various string handling functions:

===Empty string tests===

  • int [isempty] (char *strarg) - Returns true if strarg is empty, otherwise returns false
  • int [notempty] (char *strarg) - Returns true if string is populated, otherwise returns false

===Prefix handlers===

===String matching===

  • int [strbegins] (char * strarg , char *strsrc) - Returns number of characters matched if strsrc begins with strarg, zero for empty string match, (negative on no match or error)
  • int [strbeginsi] (char * strarg , char *strsrc) - Like [strbegins] , but [lettercase] insensitive.
  • int [strbeginsfield] (char * strarg , char fs, char * strsrc) - Returns number of characters matched if first field in strsrc matches strarg, zero for empty string match, (negative on no match or error). The fs character is a field separator
  • int [strbeginsfieldi] (char * strarg , char fs, char * strsrc) - Like [strbeginsfield] , but [lettercase] insensitive.

===Field functions===

  • int [longestfieldlen] (char * strarg, char fs) - Returns length of longest field in strarg

===Basic strz handling===

These functions are provided for handling [strz] data blocks:

===Return values===

Project Members:


Related

Wiki: countprefixalnums
Wiki: countprefixalphas
Wiki: countprefixdigits
Wiki: countstrz
Wiki: getstrzaddr
Wiki: getstrzoffset
Wiki: isempty
Wiki: notempty
Wiki: strbegins
Wiki: strbeginsfield
Wiki: strbeginsfieldi
Wiki: strbeginsi
Wiki: strz

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.