From c0f84b1ffa18eaf6f399aafe462f2a0f705dd009 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 7 Dec 2017 16:22:23 -0800 Subject: 4155 --- html/001help.cc.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'html/001help.cc.html') diff --git a/html/001help.cc.html b/html/001help.cc.html index 16025a66..eeebfa25 100644 --- a/html/001help.cc.html +++ b/html/001help.cc.html @@ -81,7 +81,7 @@ if ('onhashchange' in window) { 18 ¦ ¦ ¦<< "Examples:\n" 19 ¦ ¦ ¦<< " To load files and run 'main':\n" 20 ¦ ¦ ¦<< " mu file1.mu file2.mu ...\n" - 21 ¦ ¦ ¦<< " To run 'main' and dump a trace of all operations at the end:\n" + 21 ¦ ¦ ¦<< " To run 'main' and dump a trace of all operations at the end:\n" 22 ¦ ¦ ¦<< " mu --trace file1.mu file2.mu ...\n" 23 ¦ ¦ ¦<< " To run all tests:\n" 24 ¦ ¦ ¦<< " mu test\n" @@ -89,7 +89,7 @@ if ('onhashchange' in window) { 26 ¦ ¦ ¦<< " mu test file1.mu file2.mu ...\n" 27 ¦ ¦ ¦<< " To run a single Mu scenario:\n" 28 ¦ ¦ ¦<< " mu test file1.mu file2.mu ... scenario\n" - 29 ¦ ¦ ¦<< " To run a single Mu scenario and dump a trace at the end:\n" + 29 ¦ ¦ ¦<< " To run a single Mu scenario and dump a trace at the end:\n" 30 ¦ ¦ ¦<< " mu --trace test file1.mu file2.mu ... scenario\n" 31 ¦ ¦ ¦<< " To load files and run only the tests in explicitly loaded files (for apps):\n" 32 ¦ ¦ ¦<< " mu --test-only-app test file1.mu file2.mu ...\n" @@ -103,7 +103,7 @@ if ('onhashchange' in window) { 40 ¦ ¦ ¦<< " mu --profile file_or_dir1 file_or_dir2 ...\n" 41 ¦ ¦ ¦<< " this slices and dices time spent in various profile.* output files\n" 42 ¦ ¦ ¦<< "\n" - 43 ¦ ¦ ¦<< " To browse a trace generated by a previous run:\n" + 43 ¦ ¦ ¦<< " To browse a trace generated by a previous run:\n" 44 ¦ ¦ ¦<< " mu browse-trace file\n" 45 ¦ ¦ ¦; 46 return 0; @@ -139,9 +139,9 @@ if ('onhashchange' in window) { 76 77 bool starts_with(const string& s, const string& pat) { 78 string::const_iterator a=s.begin(), b=pat.begin(); - 79 for (/*nada*/; a!=s.end() && b!=pat.end(); ++a, ++b) + 79 for (/*nada*/; a!=s.end() && b!=pat.end(); ++a, ++b) 80 ¦ if (*a != *b) return false; - 81 return b == pat.end(); + 81 return b == pat.end(); 82 } 83 84 //: I'll throw some style conventions here for want of a better place for them. @@ -273,12 +273,12 @@ if ('onhashchange' in window) { 210 // from http://stackoverflow.com/questions/152643/idiomatic-c-for-reading-from-a-const-map 211 template<typename T> typename T::mapped_type& get(T& map, typename T::key_type const& key) { 212 typename T::iterator iter(map.find(key)); -213 assert(iter != map.end()); +213 assert(iter != map.end()); 214 return iter->second; 215 } 216 template<typename T> typename T::mapped_type const& get(const T& map, typename T::key_type const& key) { 217 typename T::const_iterator iter(map.find(key)); -218 assert(iter != map.end()); +218 assert(iter != map.end()); 219 return iter->second; 220 } 221 template<typename T> typename T::mapped_type const& put(T& map, typename T::key_type const& key, typename T::mapped_type const& value) { @@ -287,7 +287,7 @@ if ('onhashchange' in window) { 224 return value; 225 } 226 template<typename T> bool contains_key(T& map, typename T::key_type const& key) { -227 return map.find(key) != map.end(); +227 return map.find(key) != map.end(); 228 } 229 template<typename T> typename T::mapped_type& get_or_insert(T& map, typename T::key_type const& key) { 230 return map[key]; -- cgit 1.4.1-2-gfad0