| 870 | } |
| 871 | |
| 872 | int SCI_METHOD Document::AddData(char *data, int length) { |
| 873 | try { |
| 874 | int position = Length(); |
| 875 | InsertString(position,data, length); |
| 876 | } catch (std::bad_alloc &) { |
| 877 | return SC_STATUS_BADALLOC; |
| 878 | } catch (...) { |
| 879 | return SC_STATUS_FAILURE; |
| 880 | } |
| 881 | return 0; |
| 882 | } |
| 883 | |
| 884 | void * SCI_METHOD Document::ConvertToDocument() { |
| 885 | return this; |
nothing calls this directly
no outgoing calls
no test coverage detected