library/src/utility/BP-StringUtilities.cc
// The BP_CheckIfBufferIsQuoted() routine returns a check result.  This result can be
// translated into a string representation by supplying that check result to this routine.
The BP_CheckIfBufferIsQuoted() routine returns a check result.  This result can be
translated into a string representation by supplying that check result to this routine.
The BP_CheckIfBufferIsQuoted () routine returns a check result . This result can be translated into a string representation by supplying that check result to this routine .
char * BP_QuoteCheckResultToStringValue(BP_STRING_QUOTE_CHECK_RESULTS quote_check_results)
{
	switch(quote_check_results)
	{
		case BP_STRING_IS_UNDEFINED_OR_EMPTY:
			return strdup("BP_STRING_IS_UNDEFINED_OR_EMPTY");
		case BP_STRING_IS_NOT_QUOTED:
			return strdup("BP_STRING_IS_NOT_QUOTED");
		case BP_STRING_IS_DOUBLE_QUOTED:
			return strdup("BP_STRING_IS_DOUBLE_QUOTED");
		case BP_STRING_IS_SINGLE_QUOTED:
			return strdup("BP_STRING_IS_SINGLE_QUOTED");
		case BP_STRING_IS_MISMATCHED_QUOTED:
			return strdup("BP_STRING_IS_MISMATCHED_QUOTED");
		case BP_STRING_IS_MIXED_QUOTED_ERROR:
			return strdup("BP_STRING_IS_MIXED_QUOTED_ERROR");
		case BP_STRING_RESULT_IS_UNDEFINED:
			return strdup("BP_STRING_RESULT_IS_UNDEFINED");
		default:
			break;
	}
	return NULL;
}
char * BP_QuoteCheckResultToStringValue ( BP_STRING_QUOTE_CHECK_RESULTS quote_check_results ) { switch ( quote_check_results ) { case BP_STRING_IS_UNDEFINED_OR_EMPTY : return strdup ( " " ) ; case BP_STRING_IS_NOT_QUOTED : return strdup ( " " ) ; case BP_STRING_IS_DOUBLE_QUOTED : return strdup ( " " ) ; case BP_STRING_IS_SINGLE_QUOTED : return strdup ( " " ) ; case BP_STRING_IS_MISMATCHED_QUOTED : return strdup ( " " ) ; case BP_STRING_IS_MIXED_QUOTED_ERROR : return strdup ( " " ) ; case BP_STRING_RESULT_IS_UNDEFINED : return strdup ( " " ) ; default : break ; } return NULL ; }
The BP_CheckIfBufferIsQuoted() routine returns a check result.
The BP_CheckIfBufferIsQuoted () routine returns a check result .
// switch on the check results // break on default (return NULL) // return NULL on failure