<commit_before>// $Id: string.h,v 1.7 2000/01/28 10:55:17 oliver Exp $

#ifndef BALL_DATATYPE_STRING_H
#define BALL_DATATYPE_STRING_H

#ifndef BALL_CONFIG_CONFIG_H
#	include <BALL/CONFIG/config.h>
#endif
#ifndef BALL_COMMON_GLOBAL_H
#	include <BALL/COMMON/global.h>
#endif
#ifndef BALL_COMMON_CREATE_H
#	include <BALL/COMMON/create.h>
#endif
#ifndef BALL_COMMON_MACROS_H
#	include <BALL/COMMON/macros.h>
#endif
#ifndef BALL_COMMON_EXCEPTION_H
#	include <BALL/COMMON/exception.h>
#endif
#ifndef BALL_COMMON_DEBUG_H
#	include <BALL/COMMON/debug.h>
#endif

#include <string>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <strstream>
#include <iostream>

using ::std::string;

namespace BALL 
{

	/**	@name	String.
			An improved version of STL string.
	*/
	//@{

	class String;

	/**	A substring class.
			The Substring class represents an efficient way to deal with substrings
			of \ref{String}s. Each Substring is bound to an instance of String and 
			is defined by a start and end index. It can be used like a String (with several
			restrictions) but only affects the given range of the string it is bount to.\\
			{\bf Definition:} \URL{BALL/DATATYPE/string.h}
			\\
	*/
	class Substring
	{
		friend class String;
<commit_msg>cosmetic changes<commit_after>// $Id: string.h,v 1.8 2000/01/28 16:39:23 oliver Exp $

#ifndef BALL_DATATYPE_STRING_H
#define BALL_DATATYPE_STRING_H

#ifndef BALL_CONFIG_CONFIG_H
#	include <BALL/CONFIG/config.h>
#endif
#ifndef BALL_COMMON_GLOBAL_H
#	include <BALL/COMMON/global.h>
#endif
#ifndef BALL_COMMON_CREATE_H
#	include <BALL/COMMON/create.h>
#endif
#ifndef BALL_COMMON_MACROS_H
#	include <BALL/COMMON/macros.h>
#endif
#ifndef BALL_COMMON_EXCEPTION_H
#	include <BALL/COMMON/exception.h>
#endif
#ifndef BALL_COMMON_DEBUG_H
#	include <BALL/COMMON/debug.h>
#endif

#include <string>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <strstream>
#include <iostream>

using std::string;

namespace BALL 
{

	/**	@name	String.
			An improved version of STL string.
	*/
	//@{

	class String;

	/**	A substring class.
			The Substring class represents an efficient way to deal with substrings
			of \ref{String}s. Each Substring is bound to an instance of String and 
			is defined by a start and end index. It can be used like a String (with several
			restrictions) but only affects the given range of the string it is bount to.\\
			{\bf Definition:} \URL{BALL/DATATYPE/string.h}
			\\
	*/
	class Substring
	{
		friend class String;

{'fraction_non_alphanumeric': 0.10853322847031066, 'fraction_numerical': 0.012583562721195438, 'mean_word_length': 4.256198347107438, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1053382', 'n_tokens_mistral': 1014, 'n_tokens_neox': 954, 'n_words': 271}