Reuse trimmed_string from HTTP_HEADER_UTILITIES.
Added description to FITNESS_AND_QUALITY.
This commit is contained in:
@@ -7,6 +7,8 @@ class
|
||||
HTTP_ACCEPT_LANGUAGE
|
||||
|
||||
inherit
|
||||
HTTP_HEADER_UTILITIES
|
||||
|
||||
REFACTORING_HELPER
|
||||
|
||||
DEBUG_OUTPUT
|
||||
@@ -222,16 +224,6 @@ feature {NONE} -- Implementation
|
||||
end
|
||||
end
|
||||
|
||||
feature {NONE} -- Helper
|
||||
|
||||
trimmed_string (s: READABLE_STRING_8): STRING_8
|
||||
-- Copy of `s', where whitespace were stripped from the beginning and end of the string
|
||||
do
|
||||
create Result.make_from_string (s)
|
||||
Result.left_adjust
|
||||
Result.right_adjust
|
||||
end
|
||||
|
||||
invariant
|
||||
valid_quality: 0.0 <= quality and quality <= 1.0
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ class
|
||||
HTTP_ANY_ACCEPT
|
||||
|
||||
inherit
|
||||
HTTP_HEADER_UTILITIES
|
||||
|
||||
REFACTORING_HELPER
|
||||
|
||||
DEBUG_OUTPUT
|
||||
@@ -101,16 +103,6 @@ feature -- Status Report
|
||||
create Result.make_from_string (value)
|
||||
end
|
||||
|
||||
feature {NONE} -- Helper
|
||||
|
||||
trimmed_string (s: READABLE_STRING_8): STRING_8
|
||||
-- Copy of `s', where whitespace were stripped from the beginning and end of the string
|
||||
do
|
||||
create Result.make_from_string (s)
|
||||
Result.left_adjust
|
||||
Result.right_adjust
|
||||
end
|
||||
|
||||
note
|
||||
copyright: "2011-2013, Javier Velilla, Jocelyn Fiat, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
|
||||
Reference in New Issue
Block a user