Change STRING TO STRING_32
This commit is contained in:
@@ -21,7 +21,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (h: like handler; e: STRING)
|
||||
make (h: like handler; e: STRING_32)
|
||||
do
|
||||
make_validator (e)
|
||||
handler := h
|
||||
|
||||
@@ -21,7 +21,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (e: STRING)
|
||||
make (e: STRING_32)
|
||||
-- Initialize with specified error message which will be displayed on validation failure
|
||||
do
|
||||
make_regexp_validator ("^[0-9]+(\.[0-9]*)?$|^\.[0-9]+$", e)
|
||||
|
||||
@@ -21,7 +21,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (e: STRING)
|
||||
make (e: STRING_32)
|
||||
-- Initialize with specified error message which will be displayed on validation failure
|
||||
do
|
||||
make_regexp_validator ("^[a-zA-Z0-9._%%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$", e)
|
||||
|
||||
@@ -23,7 +23,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (m: INTEGER; e: STRING)
|
||||
make (m: INTEGER; e: STRING_32)
|
||||
-- Initialize with specified maximum filesize and error message which will be displayed on validation failure
|
||||
do
|
||||
make_validator (e)
|
||||
|
||||
@@ -23,7 +23,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (m: INTEGER; e: STRING)
|
||||
make (m: INTEGER; e: STRING_32)
|
||||
-- Initialize with specified maximum and error message which will be displayed on validation failure
|
||||
do
|
||||
make_validator (e)
|
||||
|
||||
@@ -23,7 +23,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (m: INTEGER; e: STRING)
|
||||
make (m: INTEGER; e: STRING_32)
|
||||
-- Initialize with specified minimum and error message which will be displayed on validation failure
|
||||
do
|
||||
make_validator (e)
|
||||
|
||||
@@ -11,7 +11,7 @@ class
|
||||
|
||||
inherit
|
||||
|
||||
WSF_VALIDATOR [STRING]
|
||||
WSF_VALIDATOR [STRING_32]
|
||||
rename
|
||||
make as make_validator
|
||||
redefine
|
||||
@@ -23,7 +23,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (r, e: STRING)
|
||||
make (r, e: STRING_32)
|
||||
-- Initialize with specified regular expression and error message which will be displayed on validation failure
|
||||
do
|
||||
make_validator (e)
|
||||
@@ -33,7 +33,7 @@ feature {NONE} -- Initialization
|
||||
|
||||
feature -- Implementation
|
||||
|
||||
is_valid (input: STRING): BOOLEAN
|
||||
is_valid (input: STRING_32): BOOLEAN
|
||||
do
|
||||
--Only compile when used
|
||||
if not regexp.is_compiled then
|
||||
@@ -55,7 +55,7 @@ feature -- State
|
||||
|
||||
feature -- Properties
|
||||
|
||||
regexp_string: STRING
|
||||
regexp_string: STRING_32
|
||||
|
||||
regexp: REGULAR_EXPRESSION
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ deferred class
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (e: STRING)
|
||||
make (e: STRING_32)
|
||||
-- Initialize with specified error message to be displayed on validation failure
|
||||
do
|
||||
error := e
|
||||
@@ -34,6 +34,6 @@ feature -- Access
|
||||
|
||||
feature -- Properties
|
||||
|
||||
error: STRING
|
||||
error: STRING_32
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user