MCPcopy Create free account
hub / github.com/Kitware/VTK / IsValid

Method IsValid

IO/Core/vtkTextCodec.cxx:47–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool vtkTextCodec::IsValid(istream& InputStream)
48{
49 bool returnBool = true;
50 // get the position of the stream so we can restore it when we are done
51 istream::pos_type StreamPos = InputStream.tellg();
52
53 try
54 {
55 bucketIterator bucket;
56 this->ToUnicode(InputStream, bucket);
57 }
58 catch (...)
59 {
60 returnBool = false;
61 }
62
63 // reset the stream
64 InputStream.clear();
65 InputStream.seekg(StreamPos);
66
67 return returnBool;
68}
69
70void vtkTextCodec::ToUnicode(istream& inputStream, vtkTextCodec::OutputIterator& output)
71{

Callers 15

ToJSONMethod · 0.45
GetOriginAndSpacingMethod · 0.45
TestFixedWidthTextReaderFunction · 0.45
BindParameterMethod · 0.45
CodecToHandleMethod · 0.45
SetActiveDomainMethod · 0.45
GetGridMethod · 0.45
updateGlyphSourcesFunction · 0.45

Calls 2

ToUnicodeMethod · 0.95
clearMethod · 0.45

Tested by 1

TestFixedWidthTextReaderFunction · 0.36