OpenDNSSEC-enforcer
1.3.16
|
#include "config.h"
#include <assert.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "compat.h"
#include "ksm/string_util.h"
#include "ksm/message.h"
#include "ksm/ksmdef.h"
Go to the source code of this file.
Functions | |
void | StrUncomment (char *line) |
void | StrWhitespace (char *line) |
char * | StrStrdup (const char *string) |
void | StrStrncpy (char *dst, const char *src, size_t dstlen) |
void | StrStrncat (char *dst, const char *src, size_t dstlen) |
void | StrTrimR (char *text) |
char * | StrTrimL (char *text) |
char * | StrTrim (char *text) |
size_t | StrToLower (char *string) |
size_t | StrToUpper (char *string) |
size_t | StrReplaceCharN (char *string, size_t len, char search, char replace) |
size_t | StrReplaceChar (char *string, char search, char replace) |
size_t | StrTrimmedLength (const char *string) |
size_t StrReplaceChar | ( | char * | string, |
char | search, | ||
char | replace | ||
) |
Definition at line 415 of file string_util.c.
References StrReplaceCharN().
size_t StrReplaceCharN | ( | char * | string, |
size_t | len, | ||
char | search, | ||
char | replace | ||
) |
Definition at line 399 of file string_util.c.
Referenced by StrReplaceChar().
char* StrStrdup | ( | const char * | string | ) |
Definition at line 126 of file string_util.c.
References KSM_STMTALLOC, MemCalloc(), and MsgLog().
Referenced by cmd_addzone(), cmd_exportkeys(), cmd_import(), createPidDir(), DdsInit(), DisInit(), DisSpecifyInit(), DqsCountInit(), DqsInit(), DqsSpecifyInit(), DtGeneralString(), DtParseDateTime(), DtParseDateTimeString(), DusInit(), get_log_user(), getPermsForDrop(), KsmImportZone(), KsmKeyCountStillGood(), KsmRequestChangeState(), KsmRequestChangeStateN(), main(), make_directory(), ReadConfig(), StrAppend(), StrArglistAdd(), StrArglistCreate(), StrStrtol(), StrStrtoul(), and update_policies().
void StrStrncat | ( | char * | dst, |
const char * | src, | ||
size_t | dstlen | ||
) |
Definition at line 193 of file string_util.c.
References StrStrncpy().
void StrStrncpy | ( | char * | dst, |
const char * | src, | ||
size_t | dstlen | ||
) |
Definition at line 178 of file string_util.c.
Referenced by DbStringBuffer(), DtGeneral(), DtSecondsInterval(), KsmPolicyUpdateSalt(), and StrStrncat().
size_t StrToLower | ( | char * | string | ) |
Definition at line 325 of file string_util.c.
Referenced by cmd_import(), cmd_rollpolicy(), cmd_rollzone(), and DtParseDateTime().
size_t StrToUpper | ( | char * | string | ) |
Definition at line 355 of file string_util.c.
Referenced by cmd_exportkeys(), cmd_import(), get_log_user(), KsmRequestChangeState(), KsmRequestChangeStateN(), and main().
char* StrTrim | ( | char * | text | ) |
Definition at line 302 of file string_util.c.
References StrTrimL(), and StrTrimR().
char* StrTrimL | ( | char * | text | ) |
Definition at line 271 of file string_util.c.
Referenced by DtParseDateTime(), StrArglistCreate(), StrStrtol(), StrStrtoul(), and StrTrim().
size_t StrTrimmedLength | ( | const char * | string | ) |
Definition at line 444 of file string_util.c.
void StrTrimR | ( | char * | text | ) |
Definition at line 230 of file string_util.c.
Referenced by DtParseDateTime(), KsmParameterShow(), StrArglistCreate(), StrStrtol(), StrStrtoul(), and StrTrim().
void StrUncomment | ( | char * | line | ) |
Definition at line 67 of file string_util.c.
References COMMENT_CHAR.
void StrWhitespace | ( | char * | line | ) |
Definition at line 96 of file string_util.c.
Referenced by StrArglistCreate().