Changeset 941 for trunk/lib/Colors.h
- Timestamp:
- Dec 3, 2009, 7:05:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Colors.h
r929 r941 65 65 Colors(const Colors&); 66 66 67 // Convert char from hexadecimal to decimal, if char is out of68 // range -1 is returned.69 int to_decimal(int);70 71 67 // Assignment not implemented because assignment is always self-assignment 72 68 Colors& operator=(const Colors&); … … 86 82 }; 87 83 84 /** 85 Convert a string to color rgb values. The input str must be 86 either of length 3 or 6 and each character should be a 87 hexadecimal. 88 */ 89 void str2rgb(const std::string& str, unsigned char& r, unsigned char& g, 90 unsigned char& b); 91 92 // Convert char from hexadecimal to decimal, if char is out of 93 // range -1 is returned. 94 int to_decimal(int); 95 88 96 }} // end of namespace svndigest and namespace theplu 89 97
Note: See TracChangeset
for help on using the changeset viewer.