A brief file description. More...
#include <stdio.h>
#include <memory.h>
#include <strings.h>
#include "ink_assert.h"
#include "ink_error.h"
#include "ParseRules.h"
#include "ink_apidefs.h"
Go to the source code of this file.
Functions | |
inkcoreapi char * | ink_memcpy_until_char (char *dst, char *src, unsigned int n, unsigned char c) |
inkcoreapi char * | ink_strncpy (char *dest, const char *src, int n) |
inkcoreapi char * | ink_strncat (char *dest, const char *src, int n) |
inkcoreapi char * | ink_string_concatenate_strings (char *dest,...) |
inkcoreapi char * | ink_string_concatenate_strings_n (char *dest, int n,...) |
inkcoreapi char * | ink_string_append (char *dest, char *src, int n) |
size_t | ink_strlcpy (char *dst, const char *str, size_t siz) |
size_t | ink_strlcat (char *dst, const char *str, size_t siz) |
inkcoreapi int | ink_strcasecmp (const char *a, const char *b) |
inkcoreapi int | ink_strncasecmp (const char *a, const char *b, unsigned int max) |
void | ink_utf8_to_latin1 (const char *in, int inlen, char *out, int *outlen) |
int | ptr_len_cmp (const char *p1, int l1, const char *p2, int l2) |
int | ptr_len_casecmp (const char *p1, int l1, const char *p2, int l2) |
const char * | ptr_len_str (const char *p1, int l1, const char *str) |
int | ptr_len_ncmp (const char *p1, int l1, const char *str, int n) |
int | ptr_len_ncasecmp (const char *p1, int l1, const char *str, int n) |
int | ptr_len_casecmp (const char *p1, int l1, const char *str) |
int | ptr_len_cmp (const char *p1, int l1, const char *str) |
char * | ptr_len_pbrk (const char *p1, int l1, const char *str) |
int | ink_small_itoa (int val, char *buf, int buf_len) |
int | ink_fast_itoa (int32_t val, char *buf, int buf_len) |
int | ink_fast_uitoa (uint32_t val, char *buf, int buf_len) |
int | ink_fast_ltoa (int64_t val, char *buf, int buf_len) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_string.h.
int ink_fast_itoa | ( | int32_t | val, | |
char * | buf, | |||
int | buf_len | |||
) | [inline] |
Definition at line 422 of file ink_string.h.
References ink_small_itoa().
Referenced by mime_format_int(), and url_port_set().
int ink_fast_ltoa | ( | int64_t | val, | |
char * | buf, | |||
int | buf_len | |||
) | [inline] |
Definition at line 446 of file ink_string.h.
References ink_small_itoa().
Referenced by mime_format_int64().
int ink_fast_uitoa | ( | uint32_t | val, | |
char * | buf, | |||
int | buf_len | |||
) | [inline] |
Definition at line 434 of file ink_string.h.
References ink_small_itoa().
Referenced by mime_format_uint().
inkcoreapi char* ink_memcpy_until_char | ( | char * | dst, | |
char * | src, | |||
unsigned int | n, | |||
unsigned char | c | |||
) |
Definition at line 36 of file ink_string.cc.
Referenced by unescape_str().
int ink_small_itoa | ( | int | val, | |
char * | buf, | |||
int | buf_len | |||
) | [inline] |
Definition at line 378 of file ink_string.h.
References ink_assert.
Referenced by ink_fast_itoa(), ink_fast_ltoa(), ink_fast_uitoa(), and HttpSM::redirect_request().
inkcoreapi int ink_strcasecmp | ( | const char * | a, | |
const char * | b | |||
) |
inkcoreapi char* ink_string_append | ( | char * | dest, | |
char * | src, | |||
int | n | |||
) |
Definition at line 174 of file ink_string.cc.
References ink_assert.
inkcoreapi char* ink_string_concatenate_strings | ( | char * | dest, | |
... | ||||
) |
Definition at line 103 of file ink_string.cc.
Referenced by LogObject::compute_signature(), and log_test_handler().
inkcoreapi char* ink_string_concatenate_strings_n | ( | char * | dest, | |
int | n, | |||
... | ||||
) |
Definition at line 138 of file ink_string.cc.
Referenced by HttpTransact::try_to_expand_host_name().
size_t ink_strlcat | ( | char * | dst, | |
const char * | str, | |||
size_t | siz | |||
) |
Definition at line 245 of file ink_string.cc.
Referenced by _TSstrlcat(), ExitStatus::append(), make_comma_separated_header_field_value(), HttpSM::redirect_request(), SDK_API_TSMimeHdrField(), ExitStatus::set(), CacheProcessor::start_internal(), stat_callback(), and LogUtils::timestamp_to_netscape_str().
size_t ink_strlcpy | ( | char * | dst, | |
const char * | str, | |||
size_t | siz | |||
) |
Definition at line 217 of file ink_string.cc.
Referenced by _TSstrlcpy(), _xstrdup(), api_init(), AppVersionInfo::AppVersionInfo(), LogFieldAliasTable::asString(), HttpTransactCache::calculate_quality_of_accept_charset_match(), ControlMatcher< Data, Result >::ControlMatcher(), dns_process(), dns_result(), HttpSM::do_hostdb_lookup(), LogUtils::escapify_url(), HttpBodyFactory::fabricate_with_old_api(), hdrtoken_init(), ICPConfiguration::icp_config_change_callback(), PrefetchBlaster::init(), DNSEntry::init(), Vol::init(), MultiCacheBase::initialize(), ink_filepath_make(), ink_res_init(), IpAllow::IpAllow(), Layout::Layout(), load(), Lockfile::Lockfile(), LogObject::log(), HostDBContinuation::lookup_done(), Machine::Machine(), DNSEntry::mainEvent(), HostDBContinuation::make_get_message(), make_ipv4_ptr(), make_ipv6_ptr(), HostDBContinuation::make_put_message(), CacheLookupHttpConfig::marshal(), LogAccess::marshal_str(), CommandLineArgs::parse_arguments(), Span::path(), process_arg(), process_args(), RecGetRecordDefaultDataString_Xmalloc(), RecGetRecordString(), RecPipeConnect(), RecPipeCreate(), PrefetchTransform::redirect(), HttpSM::redirect_request(), referer_info::referer_info(), Layout::relative(), Layout::relative_to(), remap_validate_filter_args(), RequestInput::run(), SDK_API_TSMimeHdrField(), LogAccessHttp::set_client_req_unmapped_url_canon(), LogAccessHttp::set_client_req_unmapped_url_host(), LogAccessHttp::set_client_req_unmapped_url_path(), LogAccessHttp::set_client_req_url(), LogAccessHttp::set_client_req_url_canon(), LogAccessHttp::set_client_req_url_path(), LogHost::set_ipstr_port(), HostDBProcessor::setby_srv(), Lockfile::SetLockfileName(), AppVersionInfo::setup(), ShowCache::ShowCache(), Thread::start(), HostDBCache::start(), CacheProcessor::start_internal(), TestProxy::startEvent(), stat_callback(), test_main(), TestDnsStateMachine::TestDnsStateMachine(), LogBuffer::to_ascii(), TSPluginDirGet(), TSRedirectUrlSet(), LogAccess::unmarshal_with_map(), and HttpSM::update_stats().
inkcoreapi int ink_strncasecmp | ( | const char * | a, | |
const char * | b, | |||
unsigned int | max | |||
) |
inkcoreapi char* ink_strncat | ( | char * | dest, | |
const char * | src, | |||
int | n | |||
) |
Definition at line 80 of file ink_string.cc.
References likely.
inkcoreapi char* ink_strncpy | ( | char * | dest, | |
const char * | src, | |||
int | n | |||
) |
Definition at line 56 of file ink_string.cc.
References likely.
void ink_utf8_to_latin1 | ( | const char * | in, | |
int | inlen, | |||
char * | out, | |||
int * | outlen | |||
) |
int ptr_len_casecmp | ( | const char * | p1, | |
int | l1, | |||
const char * | str | |||
) | [inline] |
Definition at line 275 of file ink_string.h.
References ParseRules::ink_tolower().
int ptr_len_casecmp | ( | const char * | p1, | |
int | l1, | |||
const char * | p2, | |||
int | l2 | |||
) | [inline] |
Definition at line 116 of file ink_string.h.
References ParseRules::ink_tolower().
Referenced by HttpTransact::handle_upgrade_request(), is_header_keep_alive(), MIMEHdrImpl::recompute_cooked_stuff(), and RecursiveHttpGet::RecursiveHttpGetEvent().
int ptr_len_cmp | ( | const char * | p1, | |
int | l1, | |||
const char * | str | |||
) | [inline] |
Definition at line 316 of file ink_string.h.
int ptr_len_cmp | ( | const char * | p1, | |
int | l1, | |||
const char * | p2, | |||
int | l2 | |||
) | [inline] |
Definition at line 100 of file ink_string.h.
Referenced by find_server_and_update_current_info(), StatPagesManager::handle_http(), and HttpTransact::StartRemapRequest().
int ptr_len_ncasecmp | ( | const char * | p1, | |
int | l1, | |||
const char * | str, | |||
int | n | |||
) | [inline] |
Definition at line 232 of file ink_string.h.
References ParseRules::ink_tolower().
Referenced by register_ShowHostDB().
int ptr_len_ncmp | ( | const char * | p1, | |
int | l1, | |||
const char * | str, | |||
int | n | |||
) | [inline] |
Definition at line 188 of file ink_string.h.
Referenced by HttpSM::parse_range_and_compare().
char* ptr_len_pbrk | ( | const char * | p1, | |
int | l1, | |||
const char * | str | |||
) | [inline] |
Definition at line 355 of file ink_string.h.
const char* ptr_len_str | ( | const char * | p1, | |
int | l1, | |||
const char * | str | |||
) | [inline] |
Definition at line 149 of file ink_string.h.
Referenced by HttpTransact::will_this_request_self_loop().