/* Copyright (C) 2011-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk3str.ctr */ /** @file dk3str.h Header file for the dk3str module. */ #ifndef DK3STR_H_INCLUDED /** Avoid multiple inclusions. */ #define DK3STR_H_INCLUDED 1 #line 8 "dk3str.ctr" #include "dk3conf.h" #include "dk3types.h" #ifdef __cplusplus extern "C" { #endif /** Calculate string length. * @param s String to process. * @return String length (number of characters). */ size_t dk3str_c8_len(char const *s); /** Calculate string length. * @param s String to process. * @return String length (number of characters). */ size_t dk3str_c16_len(dk3_c16_t const *s); /** Calculate string length. * @param s String to process. * @return String length (number of characters). */ size_t dk3str_c32_len(dk3_c32_t const *s); /** Calculate string length. * @param s String to process. * @return String length (number of characters). */ size_t dk3str_len(dkChar const *s); /** Compare two strings. * @param s1 Left side string. * @param s2 Right side string. * @return 1 for s1>s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1s2, 0 for s1=s2, -1 for s1