Codebase list mozc / 662f72c
adds std:: to <iosfwd> typedefs BUG=#392 REF_BUG= REF_CL=144227940 REF_TIME=2017-01-11T14:16:03-05:00 REF_TIME_RAW=1484162163 -0500 Behzad Nouri 7 years ago
4 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
195195 pb.set_compressed_lsize(kCompressedLSize);
196196 pb.set_compressed_rsize(kCompressedRSize);
197197 mozc::OutputFileStream ofs(output_size_info.c_str(),
198 ios_base::out | ios_base::binary);
198 std::ios_base::out | std::ios_base::binary);
199199 CHECK(ofs);
200200 CHECK(pb.SerializeToOstream(&ofs));
201201 ofs.close();
202202 }
203203 {
204204 mozc::OutputFileStream ofs(output_ltable.c_str(),
205 ios_base::out | ios_base::binary);
205 std::ios_base::out | std::ios_base::binary);
206206 CHECK(ofs);
207207 ltable.Output(&ofs);
208208 ofs.close();
209209 }
210210 {
211211 mozc::OutputFileStream ofs(output_rtable.c_str(),
212 ios_base::out | ios_base::binary);
212 std::ios_base::out | std::ios_base::binary);
213213 CHECK(ofs);
214214 rtable.Output(&ofs);
215215 ofs.close();
216216 }
217217 {
218218 mozc::OutputFileStream ofs(output_bitarray.c_str(),
219 ios_base::out | ios_base::binary);
219 std::ios_base::out | std::ios_base::binary);
220220 CHECK(ofs);
221221 ofs.write(barray.array(), barray.array_size());
222222 ofs.close();
2929
3030 MAJOR=2
3131 MINOR=20
32 BUILD=2682
32 BUILD=2683
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
125125 std::vector<DictionaryFileSection> sections;
126126 {
127127 OutputFileStream ofs;
128 ofs.open(test_file_.c_str(), ios_base::out | ios_base::binary);
128 ofs.open(test_file_.c_str(), std::ios_base::out | std::ios_base::binary);
129129 codec->WriteSections(sections, &ofs);
130130 }
131131 {
132132 EXPECT_TRUE(FileUtil::FileExists(test_file_));
133133 InputFileStream ifs;
134 ifs.open(test_file_.c_str(), ios_base::in | ios_base::binary);
134 ifs.open(test_file_.c_str(), std::ios_base::in | std::ios_base::binary);
135135 ifs.seekg(0, std::ios::end);
136136 const int len = ifs.tellg();
137137 ifs.seekg(0, std::ios::beg);
163163 AddSection(codec, "Section 1", value1.data(), value1.size(),
164164 &write_sections);
165165 OutputFileStream ofs;
166 ofs.open(test_file_.c_str(), ios_base::out | ios_base::binary);
166 ofs.open(test_file_.c_str(), std::ios_base::out | std::ios_base::binary);
167167 codec->WriteSections(write_sections, &ofs);
168168 }
169169 char buf[1024] = {}; // sections will reference this buffer.
171171 {
172172 EXPECT_TRUE(FileUtil::FileExists(test_file_));
173173 InputFileStream ifs;
174 ifs.open(test_file_.c_str(), ios_base::in | ios_base::binary);
174 ifs.open(test_file_.c_str(), std::ios_base::in | std::ios_base::binary);
175175 ifs.read(buf, 1024);
176176 EXPECT_TRUE(codec->ReadSections(buf, 1024, &sections));
177177 }
200200 AddSection(codec, "Section 1", value1.data(), value1.size(),
201201 &write_sections);
202202 OutputFileStream ofs;
203 ofs.open(test_file_.c_str(), ios_base::out | ios_base::binary);
203 ofs.open(test_file_.c_str(), std::ios_base::out | std::ios_base::binary);
204204 codec->WriteSections(write_sections, &ofs);
205205 }
206206 char buf[1024] = {}; // sections will reference this buffer.
208208 {
209209 EXPECT_TRUE(FileUtil::FileExists(test_file_));
210210 InputFileStream ifs;
211 ifs.open(test_file_.c_str(), ios_base::in | ios_base::binary);
211 ifs.open(test_file_.c_str(), std::ios_base::in | std::ios_base::binary);
212212 ifs.read(buf, 1024);
213213 EXPECT_TRUE(codec->ReadSections(buf, 1024, &sections));
214214 }
292292 // Output base conjugation suffix data.
293293 {
294294 OutputFileStream ostream(FLAGS_output_base_conjugation_suffix.c_str(),
295 ios_base::out | ios_base::binary);
295 std::ios_base::out | std::ios_base::binary);
296296 for (const auto &conj : conjugation_list) {
297297 const uint32 key_suffix_index =
298298 Lookup(string_index, baseform_map[conj].key_suffix);
307307 std::vector<int> conjugation_index(conjugation_list.size() + 1);
308308 {
309309 OutputFileStream ostream(FLAGS_output_conjugation_suffix.c_str(),
310 ios_base::out | ios_base::binary);
310 std::ios_base::out | std::ios_base::binary);
311311 int out_count = 0;
312312 for (size_t i = 0; i < conjugation_list.size(); ++i) {
313313 const std::vector<ConjugationType> &conjugations =
340340 // Output conjugation suffix data index.
341341 {
342342 OutputFileStream ostream(FLAGS_output_conjugation_index.c_str(),
343 ios_base::out | ios_base::binary);
343 std::ios_base::out | std::ios_base::binary);
344344 ostream.write(reinterpret_cast<const char *>(conjugation_index.data()),
345345 4 * conjugation_index.size());
346346 }
348348 // Output usage data.
349349 {
350350 OutputFileStream ostream(FLAGS_output_usage_item_array.c_str(),
351 ios_base::out | ios_base::binary);
351 std::ios_base::out | std::ios_base::binary);
352352 int32 usage_id = 0;
353353 for (const UsageItem &item : usage_entries) {
354354 const uint32 key_index = Lookup(string_index, item.key);