Deleted Added
sdiff udiff text old ( 5546:4ffc3cafba9b ) new ( 5756:88038cdbb9e1 )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 36 unchanged lines hidden (view full) ---

45 bool blank_space;
46 bool fill_zero;
47 bool uppercase;
48 enum { dec, hex, oct } base;
49 enum { none, string, integer, character, floating } format;
50 enum { best, fixed, scientific } float_format;
51 int precision;
52 int width;
53
54 Format() { clear(); }
55
56 void clear()
57 {
58 alternate_form = false;
59 flush_left = false;
60 print_sign = false;
61 blank_space = false;
62 fill_zero = false;
63 uppercase = false;
64 base = dec;
65 format = none;
66 precision = -1;
67 width = 0;
68 }
69};
70
71template <typename T>
72inline void
73_format_char(std::ostream &out, const T &data, Format &fmt)
74{
75 using namespace std;

--- 281 unchanged lines hidden ---