Merge branch 'master' of git://factorcode.org/git/jamesnvc

db4
Slava Pestov 2009-01-14 00:38:09 -06:00
commit 84c449f89e
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ strings math regexp regexp.backend ;
IN: validators
HELP: v-checkbox
{ $values { "str" string } }
{ $values { "str" string } { "?" "a boolean" } }
{ $description "Converts the string value of a checkbox component (either \"on\" or \"off\") to a boolean value." } ;
HELP: v-captcha

View File

@ -2,11 +2,11 @@
! See http://factorcode.org/license.txt for BSD license.
USING: kernel continuations sequences math namespaces make sets
math.parser math.ranges assocs regexp unicode.categories arrays
hashtables words classes quotations xmode.catalog ;
hashtables words classes quotations xmode.catalog unicode.case ;
IN: validators
: v-checkbox ( str -- ? )
"on" = ;
>lower "on" = ;
: v-default ( str def -- str/def )
over empty? spin ? ;