library/src/utility/BP-StringUtilities.cc
// Attempt to trim whitepace off the ends of a string (uses BP_StringTrim
// under the hood)
Attempt to trim whitepace off the ends of a string (uses BP_StringTrim
under the hood)
Attempt to trim whitepace off the ends of a string ( uses BP_StringTrim under the hood )
char * BP_StringTrimWhitespace
(
		char * str_to_trim,
		BP_STRING_TRIM_DIRECTION trim_direction,
		size_t  max_trim
)
{
	return BP_StringTrim
	(
			str_to_trim,
			trim_direction,
			BP_TRUE,
			BP_TRUE,
			BP_TRUE,
			BP_TRUE,
			'\0',
			max_trim
	);
}
char * BP_StringTrimWhitespace ( char * str_to_trim , BP_STRING_TRIM_DIRECTION trim_direction , size_t max_trim ) { return BP_StringTrim ( str_to_trim , trim_direction , BP_TRUE , BP_TRUE , BP_TRUE , BP_TRUE , ' \0 ' , max_trim ) ; }
Attempt to trim whitepace off the ends of a string (uses BP_StringTrim
under the hood)
Attempt to trim whitepace off the ends of a string ( uses BP_StringTrim under the hood )
// NOTE: no basic checks since BP_StringTrim does // sanitization. // attempt to trim string