ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
adstring.hpp File Reference

(Last Changed on January 18, 2022 for git-revision 5d75b90044fcc4daf5c39e7d74124ad23e22be96.)

#include "clist.h"
#include <string.h>
#include <ostream>
#include <stdio.h>

Go to the source code of this file.

Classes

class  adstring
 
class  adstring_array
 
class  adstring_shape
 
class  line_adstring
 

Functions

int atoi (adstring &s)
 Returns a integer converted from input s. More...
 
adstring chr (int c)
 
adstring itoa (int n, int d)
 
size_t length (const adstring &t)
 Returns the size of adstr. More...
 
std::ostream & operator<< (const std::ostream &ifs, const adstring_array &sa)
 
size_t pos (const adstring &substr, const adstring &s)
 
adstring str (double x, int minwidth=17, int decplaces=-1)
 Convert x to adstring with minimum width and total number of decimal places. More...
 
adstring str (const int x)
 Returns converted string representation of integer a. More...
 
void str (const int, adstring &)
 Convert integer a to adstring s. More...
 
adstring to_lower (adstring &s)
 
adstring_array to_lower (adstring_array &s)
 
adstring to_upper (adstring &s)
 
adstring_array to_upper (adstring_array &s)
 
void val (const adstring &s, int &v, int &code)
 
int val (const adstring &s)
 

Function Documentation

int atoi ( adstring s)
adstring chr ( int  c)

Definition at line 124 of file str.cpp.

adstring itoa ( int  n,
int  d 
)

Definition at line 89 of file string2.cpp.

Referenced by str().

size_t length ( const adstring adstr)
std::ostream& operator<< ( const std::ostream &  ifs,
const adstring_array sa 
)
size_t pos ( const adstring substr,
const adstring s 
)
adstring str ( double  x,
int  minwidth = 17,
int  decplaces = -1 
)
adstring str ( const int  a)

Returns converted string representation of integer a.

Parameters
aValue to be converted.

Definition at line 110 of file str.cpp.

void str ( const int  a,
adstring s 
)

Convert integer a to adstring s.

Parameters
aValue to be converted.
sConverted adstring of a.

Definition at line 95 of file str.cpp.

adstring to_lower ( adstring s)

Definition at line 31 of file strcase.cpp.

adstring_array to_lower ( adstring_array s)

Definition at line 31 of file strcase2.cpp.

adstring to_upper ( adstring s)

Definition at line 38 of file strcase.cpp.

adstring_array to_upper ( adstring_array s)

Definition at line 38 of file strcase2.cpp.

void val ( const adstring s,
int &  v,
int &  code 
)
int val ( const adstring s)

Definition at line 25 of file val.cpp.