From 637303930af12bc95b27e15bdd3c22549995a13e Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 24 Oct 2013 17:33:27 +0200 Subject: [PATCH] Removed trimmed_string function and callers, and for now, use (left_|right_)adjust --- .../src/results/http_any_accept.e | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/library/network/protocol/content_negotiation/src/results/http_any_accept.e b/library/network/protocol/content_negotiation/src/results/http_any_accept.e index 71a41f2e..13de5607 100644 --- a/library/network/protocol/content_negotiation/src/results/http_any_accept.e +++ b/library/network/protocol/content_negotiation/src/results/http_any_accept.e @@ -20,18 +20,22 @@ feature -- Initialization make_from_string (a_string: READABLE_STRING_8) local - l_parts: LIST [READABLE_STRING_8] - sub_parts: LIST [READABLE_STRING_8] - p: READABLE_STRING_8 + s: STRING_8 i: INTEGER do initialize i := a_string.index_of (';', 1) if i > 0 then - set_value (trimmed_string (a_string.substring (1, i - 1))) - create parameters.make_from_substring (a_string, i + 1, a_string.count) + create s.make_from_string (a_string.substring (1, i - 1)) else - set_value (trimmed_string (a_string)) + create s.make_from_string (a_string) + end + + s.left_adjust + s.right_adjust + set_value (s) + if i > 0 then + create parameters.make_from_substring (a_string, i + 1, a_string.count) end end