Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C Strings Library

Is there a C strings library for C (not C++) that implements an abstraction over char * and wchar_t * strings?

The requirements are:

  1. to be BSD/MIT/CDDL licenced
  2. implements some kind of reference count mechanism
  3. has support for regular expressions
  4. has Unicode support

Thanks,

like image 922
Aram Hăvărneanu Avatar asked Nov 09 '09 10:11

Aram Hăvărneanu


People also ask

What library is string in C?

h is the header in the C standard library for the C programming language which contains macro definitions, constants and declarations of functions and types used not only for string handling but also various memory handling functions; the name is thus something of a misnomer.

Which library is used for strings?

The string class is part of the C++ standard library.

What is standard library string functions in C?

Library Functions Compares the first n bytes of str1 and str2. Copies n characters from src to dest. Another function to copy n characters from str2 to str1. Copies the character c (an unsigned char) to the first n characters of the string pointed to, by the argument str.

Is there a standard library for C?

The C standard library or libc is the standard library for the C programming language, as specified in the ISO C standard. Starting from the original ANSI C standard, it was developed at the same time as the C library POSIX specification, which is a superset of it.


1 Answers

What about this? Looks good, at least matches some of your criteria, but I didn't use it so it must be checked. At least I see BSD license here so it could be useful point to start.

like image 51
Roman Nikitchenko Avatar answered Sep 18 '22 23:09

Roman Nikitchenko