Definition at line 697 of file unicharset.cpp.
◆ InMemoryFilePointer()
InMemoryFilePointer::InMemoryFilePointer |
( |
const char * |
memory, |
|
|
int |
mem_size |
|
) |
| |
|
inline |
Definition at line 699 of file unicharset.cpp.
700 : memory_(memory), fgets_ptr_(memory), mem_size_(mem_size) { }
◆ fgets()
char* InMemoryFilePointer::fgets |
( |
char * |
orig_dst, |
|
|
int |
size |
|
) |
| |
|
inline |
Definition at line 702 of file unicharset.cpp.
703 const char *src_end = memory_ + mem_size_;
704 char *dst_end = orig_dst + size - 1;
706 return fgets_ptr_ < src_end ? orig_dst : NULL;
709 char *dst = orig_dst;
711 while (fgets_ptr_ < src_end && dst < dst_end && ch !=
'\n') {
712 ch = *dst++ = *fgets_ptr_++;
715 return (dst == orig_dst) ? NULL : orig_dst;
The documentation for this class was generated from the following file: