diff options
author | Diva Canto | 2014-02-21 10:05:06 -0800 |
---|---|---|
committer | Diva Canto | 2014-02-21 10:05:06 -0800 |
commit | 97c74afca897acf8f000b0560ff041fd51897e5b (patch) | |
tree | 71efc4ababc6f428de291a56e289fa158cbf2272 /OpenSim/Framework/Util.cs | |
parent | Added 2 new behavirors to pCampBot. These are part of a systematic study I'm ... (diff) | |
parent | If texture decode fails in Warp3D map maker, log uuid of asset that failed to... (diff) | |
download | opensim-SC-97c74afca897acf8f000b0560ff041fd51897e5b.zip opensim-SC-97c74afca897acf8f000b0560ff041fd51897e5b.tar.gz opensim-SC-97c74afca897acf8f000b0560ff041fd51897e5b.tar.bz2 opensim-SC-97c74afca897acf8f000b0560ff041fd51897e5b.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 7bc8176..c7377b8 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1746,6 +1746,30 @@ namespace OpenSim.Framework | |||
1746 | } | 1746 | } |
1747 | 1747 | ||
1748 | /// <summary> | 1748 | /// <summary> |
1749 | /// Pretty format the hashtable contents to a single line. | ||
1750 | /// </summary> | ||
1751 | /// <remarks> | ||
1752 | /// Used for debugging output. | ||
1753 | /// </remarks> | ||
1754 | /// <param name='ht'></param> | ||
1755 | public static string PrettyFormatToSingleLine(Hashtable ht) | ||
1756 | { | ||
1757 | StringBuilder sb = new StringBuilder(); | ||
1758 | |||
1759 | int i = 0; | ||
1760 | |||
1761 | foreach (string key in ht.Keys) | ||
1762 | { | ||
1763 | sb.AppendFormat("{0}:{1}", key, ht[key]); | ||
1764 | |||
1765 | if (++i < ht.Count) | ||
1766 | sb.AppendFormat(", "); | ||
1767 | } | ||
1768 | |||
1769 | return sb.ToString(); | ||
1770 | } | ||
1771 | |||
1772 | /// <summary> | ||
1749 | /// Used to trigger an early library load on Windows systems. | 1773 | /// Used to trigger an early library load on Windows systems. |
1750 | /// </summary> | 1774 | /// </summary> |
1751 | /// <remarks> | 1775 | /// <remarks> |