QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
strfuncs.h File Reference

Optimizations to GLib's string functions. More...

#include "qev.h"

Go to the source code of this file.

Macros

#define g_str_has_prefix(str, prefix)   qev_str_has_prefix_len(str, prefix, strlen(prefix))
 A simplified version of qev_str_has_prefix() that tries to compute length at compile time.
 

Functions

gboolean qev_str_has_prefix_len (const gchar *str, const gchar *prefix, const gsize prefix_len)
 Determine if a string has a prefix. More...
 

Detailed Description

Optimizations to GLib's string functions.

Author
Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com

Function Documentation

gboolean qev_str_has_prefix_len ( const gchar *  str,
const gchar *  prefix,
const gsize  prefix_len 
)

Determine if a string has a prefix.

Note
Use the macro g_str_has_prefix for a simplified version of this.
Parameters
strThe string to check
prefixThe prefix to look for
prefix_lenThe length of the prefix.
Returns
If the string has the prefix