| 711 | -------------------------------------------------------------------------*/ |
| 712 | |
| 713 | const char * |
| 714 | URLImpl::get_scheme(int *length) |
| 715 | { |
| 716 | if (this->m_scheme_wks_idx >= 0) { |
| 717 | *length = hdrtoken_index_to_length(this->m_scheme_wks_idx); |
| 718 | return hdrtoken_index_to_wks(this->m_scheme_wks_idx); |
| 719 | } else { |
| 720 | *length = this->m_len_scheme; |
| 721 | return this->m_ptr_scheme; |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | /*------------------------------------------------------------------------- |
| 726 | -------------------------------------------------------------------------*/ |
no test coverage detected