~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core/StringParserService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
                                return ((float)val).ToString (format);
157
157
                        else if (val is double)
158
158
                                return ((double)val).ToString (format);
159
 
                        else
160
 
                                return val.ToString ();
 
159
                        else if (val is string) {
 
160
                                if (format == "upper")
 
161
                                        return val.ToString ().ToUpper ();
 
162
                                if (format == "lower")
 
163
                                        return val.ToString ().ToLower ();
 
164
                        }
 
165
                        return val.ToString ();
161
166
                }
162
167
                
163
168
                public static string Parse<T> (string input, Dictionary<string,T> customTags)