Home | History | Annotate | Download | only in common

Lines Matching refs:Format

23  * \brief String format utilities.
34 namespace Format
67 std::ostream& operator<< (std::ostream& stream, tcu::Format::Hex<NumDigits> hex)
83 #define TCU_BIT_DESC(BIT) tcu::Format::BitDesc(BIT, #BIT)
217 // Hex format iterator (useful for combining with ArrayFormatter).
218 // \todo [2012-10-30 pyry] Implement more generic format iterator.
241 } // Format
247 /** Format value as hexadecimal number. */
249 inline Format::Hex<NumDigits> toHex (T value)
251 return Format::Hex<NumDigits>(toUint64(value));
254 /** Format value as hexadecimal number. */
256 inline Format::Hex<sizeof(T)*2> toHex (T value)
258 return Format::Hex<sizeof(T)*2>(toUint64(value));
261 /** Decode and format bitfield. */
263 inline Format::Bitfield<sizeof(T)*8> formatBitfield (T value, const Format::BitDesc (&desc)[Size])
265 return Format::Bitfield<sizeof(T)*8>((deUint64)value, &desc[0], &desc[Size]);
268 /** Format array contents. */
270 inline Format::Array<Iterator> formatArray (const Iterator& begin, const Iterator& end)
272 return Format::Array<Iterator>(begin, end);
275 /** Format array contents. */
277 inline Format::ArrayPointer<T> formatArray (const T* arr, int size)
279 return Format::ArrayPointer<T>(arr, size);
282 /** Format array contents. */
284 inline Format::ArrayPointer<T> formatArray (const T (&arr)[Size])
286 return Format::ArrayPointer<T>(arr, Size);