Changeset 1154
- Timestamp:
- Aug 7, 2010, 10:11:04 PM (13 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Configuration.cc
r1152 r1154 101 101 } 102 102 103 104 const std::string& Configuration::copyright_string(void) const 105 { 106 return copyright_string_; 107 } 103 108 104 109 const std::pair<std::string,std::string>* … … 223 228 throw Config_error(line, ""); 224 229 } 230 } 231 else if (lhs=="copyright-string") { 232 copyright_string_ = rhs; 225 233 } 226 234 } … … 471 479 { 472 480 copyright_alias_.clear(); 481 copyright_string_="Copyright (C)"; 473 482 missing_copyright_warning_=false; 474 483 trac_root_ = ""; … … 602 611 else 603 612 os << "no\n"; 613 os << "copyright-string = " << conf.copyright_string_ << "\n"; 604 614 605 615 os << "\n" -
trunk/lib/Configuration.h
r1152 r1154 71 71 /// 72 72 const std::map<std::string, Alias>& copyright_alias(void) const; 73 74 /** 75 @return copyright string e.g. 'Copyright (C)' (default) 76 */ 77 const std::string& copyright_string(void) const; 73 78 74 79 /** … … 190 195 std::map<std::string, std::string> author_color_; 191 196 std::map<std::string, Alias> copyright_alias_; 197 std::string copyright_string_; 192 198 193 199 bool missing_copyright_warning_; -
trunk/lib/File.cc
r1137 r1154 128 128 for (map<int, set<Alias> >::const_iterator i(year_authors.begin()); 129 129 i!=year_authors.end();) { 130 ss << prefix << "Copyright (C)"131 130 ss << prefix << Configuration::instance().copyright_string() << " " 131 << 1900+i->first; 132 132 map<int, set<Alias> >::const_iterator j = i; 133 133 assert(i!=year_authors.end()); -
trunk/lib/LineTypeParser.cc
r978 r1154 63 63 else { 64 64 // check whether copyright starts on this line 65 std::string::iterator i=search(line.begin(),line.end(),"Copyright (C)"); 65 std::string::iterator i = 66 search(line.begin(), line.end(), 67 Configuration::instance().copyright_string()); 66 68 if (i!=line.end()) { 67 69 start_line_ = type_.size()+1;
Note: See TracChangeset
for help on using the changeset viewer.