String and text processing routines for libts. More...
#include "libts.h"
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | INK_MAX_STRING_ARRAY_SIZE 128 |
Functions | |
char * | ink_memcpy_until_char (char *dst, char *src, unsigned int n, unsigned char c) |
char * | ink_strncpy (char *dest, const char *src, int n) |
char * | ink_strncat (char *dest, const char *src, int n) |
char * | ink_string_concatenate_strings (char *dest,...) |
char * | ink_string_concatenate_strings_n (char *dest, int n,...) |
char * | ink_string_append (char *dest, char *src, int n) |
size_t | ink_strlcpy (char *dst, const char *src, size_t siz) |
size_t | ink_strlcat (char *dst, const char *src, size_t siz) |
String and text processing routines for libts.
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.cc.
#define INK_MAX_STRING_ARRAY_SIZE 128 |
Definition at line 31 of file ink_string.cc.
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().
char* ink_string_append | ( | char * | dest, | |
char * | src, | |||
int | n | |||
) |
Definition at line 174 of file ink_string.cc.
References ink_assert.
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().
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 * | src, | |||
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 * | src, | |||
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().
char* ink_strncat | ( | char * | dest, | |
const char * | src, | |||
int | n | |||
) |
Definition at line 80 of file ink_string.cc.
References likely.
char* ink_strncpy | ( | char * | dest, | |
const char * | src, | |||
int | n | |||
) |
Definition at line 56 of file ink_string.cc.
References likely.