Skip to content

sk02241994/StringLibForC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

String library for C

This library is an experimental replication of JAVA string library.

Methods present
  • charAt -> Method to get the character at specified index.
  • compareTo -> Method to compare two strings lexicographically.
  • concat -> Method to concat two strings.
  • contains -> Method to check if the string contains specified substring.
  • endsWith -> Method to check if the string ends with specified substring.
  • hashCode -> Method to generate hash value of given string.
  • equals -> Method to check if the string are equal.
  • equalsIgnoreCase -> Method to check if the string are equal ignoring the case of the string.
  • toLowerCase -> Method to convert string to lower case.
  • toUpperCase -> Method to convert string to upper case.
  • indexOf -> Method to find index of the given substring.
  • indexOfWithStart -> Method to find index of the given substring starting from specified index.
  • isEmpty -> Method to check if the string is empty. (Length is checked.)
  • lastIndexOf -> Method to find the last index substring mentioned.
  • lastIndexOfWithStart -> Method to find the last index substring mentioned starting from specified index.
  • replaceChar -> Method to replace character.
  • replaceString -> Method to replace string.
  • split -> Method to split the string into array of strings. (Uses strtok to split)
  • trim -> Method to remove extra white space that is before or after the entered string.
  • subString -> Method to return substring from provided index.

About

A simples string library for C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages