Logo ROOT  
Reference Guide
TGTextView.cxx File Reference
#include "TGTextView.h"
#include "TGScrollBar.h"
#include "TGResourcePool.h"
#include "TSystem.h"
#include "TGDNDManager.h"
#include "TBufferFile.h"
#include "TSystemFile.h"
#include "TObjString.h"
#include "TMacro.h"
#include "TGMsgBox.h"
#include "TUrl.h"
#include "TVirtualX.h"
#include <iostream>
Include dependency graph for TGTextView.cxx:

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 

Functions

static Bool_t IsTextFile (const char *candidate)
 Returns true if given a text file Uses the specification given on p86 of the Camel book. More...
 

Function Documentation

◆ IsTextFile()

static Bool_t IsTextFile ( const char *  candidate)
static

Returns true if given a text file Uses the specification given on p86 of the Camel book.

  • Text files have no NULLs in the first block
  • and less than 30% of characters with high bit set

Definition at line 1050 of file TGTextView.cxx.