aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorJeff Ames2008-05-16 01:22:11 +0000
committerJeff Ames2008-05-16 01:22:11 +0000
commit65c5efe43b68700bad94076d4cd421160203c5de (patch)
tree589b56649ed02f4942671fd6e51c6dc43f682e0d /OpenSim/Framework/Util.cs
parentThank you very much, mjm for : (diff)
downloadopensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.zip
opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.tar.gz
opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.tar.bz2
opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.tar.xz
Formatting cleanup.
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 5577140..8e5b02d 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -165,10 +165,10 @@ namespace OpenSim.Framework
165 // (but those probably wont work anyway) 165 // (but those probably wont work anyway)
166 return file; 166 return file;
167 } 167 }
168 168
169 /// <summary> 169 /// <summary>
170 /// Debug utility function to convert unbroken strings of XML into something human readable for occasional debugging purposes. 170 /// Debug utility function to convert unbroken strings of XML into something human readable for occasional debugging purposes.
171 /// 171 ///
172 /// Please don't delete me even if I appear currently unused! 172 /// Please don't delete me even if I appear currently unused!
173 /// </summary> 173 /// </summary>
174 /// <param name="rawXml"></param> 174 /// <param name="rawXml"></param>
@@ -177,22 +177,22 @@ namespace OpenSim.Framework
177 { 177 {
178 XmlDocument xd = new XmlDocument(); 178 XmlDocument xd = new XmlDocument();
179 xd.LoadXml(rawXml); 179 xd.LoadXml(rawXml);
180 180
181 StringBuilder sb = new StringBuilder(); 181 StringBuilder sb = new StringBuilder();
182 StringWriter sw = new StringWriter(sb); 182 StringWriter sw = new StringWriter(sb);
183 183
184 XmlTextWriter xtw = new XmlTextWriter(sw); 184 XmlTextWriter xtw = new XmlTextWriter(sw);
185 xtw.Formatting = Formatting.Indented; 185 xtw.Formatting = Formatting.Indented;
186 186
187 try 187 try
188 { 188 {
189 xd.WriteTo(xtw); 189 xd.WriteTo(xtw);
190 } 190 }
191 finally 191 finally
192 { 192 {
193 xtw.Close(); 193 xtw.Close();
194 } 194 }
195 195
196 return sb.ToString(); 196 return sb.ToString();
197 } 197 }
198 198
@@ -284,11 +284,11 @@ namespace OpenSim.Framework
284 /// Convert a variable length field (byte array) to a string, with a 284 /// Convert a variable length field (byte array) to a string, with a
285 /// field name prepended to each line of the output 285 /// field name prepended to each line of the output
286 /// </summary> 286 /// </summary>
287 /// <remarks>If the byte array has unprintable characters in it, a 287 /// <remarks>If the byte array has unprintable characters in it, a
288 /// hex dump will be put in the string instead</remarks> 288 /// hex dump will be put in the string instead</remarks>
289 /// <param name="bytes">The byte array to convert to a string</param> 289 /// <param name="bytes">The byte array to convert to a string</param>
290 /// <param name="fieldName">A field name to prepend to each line of output</param> 290 /// <param name="fieldName">A field name to prepend to each line of output</param>
291 /// <returns>An ASCII string or a string containing a hex dump, minus 291 /// <returns>An ASCII string or a string containing a hex dump, minus
292 /// the null terminator</returns> 292 /// the null terminator</returns>
293 public static string FieldToString(byte[] bytes, string fieldName) 293 public static string FieldToString(byte[] bytes, string fieldName)
294 { 294 {