[banshee] [HttpUtility] Nuke System.Web.Util dep
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [HttpUtility] Nuke System.Web.Util dep
- Date: Thu, 21 Jan 2010 22:55:39 +0000 (UTC)
commit da4d9241400c6b94fc7c7578e4a26c1331858faf
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Jan 21 13:16:22 2010 -0800
[HttpUtility] Nuke System.Web.Util dep
src/Libraries/Hyena/Hyena/HttpUtility.cs | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/Libraries/Hyena/Hyena/HttpUtility.cs b/src/Libraries/Hyena/Hyena/HttpUtility.cs
index d9afcf7..0ff9419 100644
--- a/src/Libraries/Hyena/Hyena/HttpUtility.cs
+++ b/src/Libraries/Hyena/Hyena/HttpUtility.cs
@@ -36,7 +36,6 @@ using System.Globalization;
using System.IO;
using System.Security.Permissions;
using System.Text;
-using System.Web.Util;
namespace System.Web {
@@ -46,6 +45,8 @@ namespace System.Web {
#endif
public sealed class HttpUtility
{
+ private static readonly CultureInfo InvariantCulture = CultureInfo.InvariantCulture;
+
sealed class HttpQSCollection : NameValueCollection
{
public override string ToString ()
@@ -860,7 +861,7 @@ namespace System.Web {
if (c == '&') {
state = 1;
if (have_trailing_digits) {
- entity.Append (number.ToString (Helpers.InvariantCulture));
+ entity.Append (number.ToString (InvariantCulture));
have_trailing_digits = false;
}
@@ -900,7 +901,7 @@ namespace System.Web {
if (c == ';') {
if (number > 65535) {
output.Append ("&#");
- output.Append (number.ToString (Helpers.InvariantCulture));
+ output.Append (number.ToString (InvariantCulture));
output.Append (";");
} else {
output.Append ((char) number);
@@ -914,7 +915,7 @@ namespace System.Web {
} else {
state = 2;
if (have_trailing_digits) {
- entity.Append (number.ToString (Helpers.InvariantCulture));
+ entity.Append (number.ToString (InvariantCulture));
have_trailing_digits = false;
}
entity.Append (c);
@@ -925,7 +926,7 @@ namespace System.Web {
if (entity.Length > 0) {
output.Append (entity.ToString ());
} else if (have_trailing_digits) {
- output.Append (number.ToString (Helpers.InvariantCulture));
+ output.Append (number.ToString (InvariantCulture));
}
return output.ToString ();
}
@@ -990,7 +991,7 @@ namespace System.Web {
if (s [i] > 159) {
#endif
output.Append ("&#");
- output.Append (((int) s [i]).ToString (Helpers.InvariantCulture));
+ output.Append (((int) s [i]).ToString (InvariantCulture));
output.Append (";");
} else {
output.Append (s [i]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]