/Users/maurits/Documents/studie/afstuderen/biosphere/common/str.c File Reference

#include "str.h"
#include <assert.h>
#include <apr_strings.h>

Include dependency graph for str.c:

Go to the source code of this file.

Functions

bs_bool streq (const char *s1, const char *s2)
void strtokenize (bs_list *result, const char *string, const char *delimiters)


Function Documentation

bs_bool streq ( const char *  s1,
const char *  s2 
)

Test for string equality.

Parameters:
s1 First string
s2 Second string
Returns:
True iff both strings are equal.

Definition at line 7 of file str.c.

Referenced by add_data_type_to_definition(), add_message_to_definition(), add_port_type_to_definition(), add_service(), add_service_to_definition(), add_user(), bsmod_fusion_handle_service(), bsmod_hand_handle_service(), bsmod_keystroke_handle_service(), bsmod_password_handle_service(), bsmod_stat_handle_avgminmax(), bsmod_stat_handle_gather_times(), bsmod_stat_handle_service(), bsmod_stat_handle_start_timer(), bsmod_stat_handle_stat_functions(), bsmod_stat_handle_stop_timer(), bsmod_stat_handle_time_functions(), can_service(), check_builtin_type(), compare_message_parts(), copy_message_part(), copy_operation(), copy_port(), core_service_daemon_admin(), core_service_logging_service(), core_service_module_service(), core_service_request_handler(), decision_to_bool(), dict_add(), dict_get(), dict_remove(), get_module_info(), is_builtin_type(), lookup_data_type_by_name(), lookup_message_by_element(), lookup_porttype_by_name(), node_already_known(), process_data_type(), process_definition(), process_message(), process_operation(), process_port(), process_porttype(), process_request(), process_request_input(), process_request_input_part(), process_request_use(), process_response(), process_response_fault(), process_response_output(), process_response_used(), process_service(), process_tree(), remove_node(), remove_service(), remove_user(), and unload_module().

void strtokenize ( bs_list result,
const char *  string,
const char *  delim 
)

Tokenize a given string given the set of delimiters and return a list of the tokens. The tokens are allocated from the list provided inside the result list.

Parameters:
result List to put the resulting tokens in
string String to tokenize
delim Delimiters to use. If NULL, whitespace is the delimiter.

Definition at line 21 of file str.c.

References list_append(), pool, and bs_list::pool.

Referenced by bsmod_password_init(), and bsmod_stat_handle_avgminmax().

Here is the call graph for this function:


Generated on Tue Jul 17 09:50:59 2007 for Bio-SPHERE by  doxygen 1.5.1