Logo Search packages:      
Sourcecode: djvulibre version File versions

int DjVuNavDir::name_to_page ( const char *  name  )  const

Converts file name name# to page number. Returns #-1# if file with given name cannot be found.

Definition at line 160 of file DjVuNavDir.cpp.

References GMapTemplate< KTYPE, VTYPE, TI >::contains().

   GCriticalSectionLock lk((GCriticalSection *)&lock);

   if (!name2page.contains(name)) return -1;
   return name2page[name];

Generated by  Doxygen 1.6.0   Back to index