Forum archive 2000-2006

Mike Gage - std_str_cmp

Mike Gage - std_str_cmp

by Arnold Pizer -
Number of replies: 0
inactiveTopicstd_str_cmp topic started 9/13/2001; 10:23:10 AM
last post 9/13/2001; 10:23:10 AM
userMike Gage - std_str_cmp blueArrow
9/13/2001; 10:23:10 AM (reads: 670, responses: 0)

std_str_cmp

Description
This is an old version of the str_cmp, the answer evalator creator. It compares the student answer and the correct answer ignoring case, and treating successive interior white spaces as a single white space and ignoring leading and trailing white space.

Syntax

std_str_cmp($string_answer)

Params

$string_answer is a variable containin an ASCII string which is the correct answer.

Options

Option keyOption valueDefault
This version has no options and no ability to create multiple string comparison evaluators. See string for str_cmp for a versionwhich does.

Returns

Answer evaluator.

Examples

ANS( std_str_cmp("hello")

Notes

std_str_cmp($string_answer) is exactly equivalent to
str_cmp( [$string_answer], filters => ['compress_whitespace', 'ignore_case'] )

 

<| Post or View Comments |>