Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sobj_mod.c File Reference


Detailed Description

Object modification functions.

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdarg.h>
#include "sobject_p.h"

Include dependency graph for sobj_mod.c:

Include dependency graph

Functions

sobjsobj_concat_array (struct sobj *, struct sobj *)
 Append an array object to an array object.
sobjsobj_concat_string (struct sobj *, struct sobj *)
 Append a string object to a string object.
sobjsobj_set_classname (struct sobj *sobj, const char *cn)
 Change the class name of the called object.
sobjsobj_insert (struct sobj *sobj, int position, struct sobj *key, struct sobj *value)
 Insert an element (key/value pair) into an array object.
sobjsobj_insert_with_string (struct sobj *sobj, int position, const char *key_string, struct sobj *value)
 Insert an element (key/value pair) into an array object.
sobjsobj_insert_many (struct sobj *sobj, int position, int key_n, struct sobj **key, int value_n, struct sobj **value)
 Insert a sequence of elements (key/value pairs) into an array object.
sobjsobj_append (struct sobj *sobj, struct sobj *key, struct sobj *value)
 Append an element (key/value pair) to an array object.
sobjsobj_append_with_string (struct sobj *sobj, const char *key_string, struct sobj *value)
 Append an element (key/value pair) to an array object.
sobjsobj_append_many (struct sobj *sobj, int key_n, struct sobj **key, int value_n, struct sobj **value)
 Append a sequence of elements (key/value pairs) to an array object.
sobjsobj_remove (struct sobj *sobj, int position, int count)
 Remove a number of elements from an array object.
sobjsobj_remove_key (struct sobj *sobj, struct sobj *key, struct sobj_env *env)
 Remove the last element whose key matches the specified key.
sobjsobj_remove_key_with_string (struct sobj *sobj, const char *key_string, struct sobj_env *env)
 Remove the last element whose key matches the specified key.
sobjsobj_replace (struct sobj *sobj, int position, struct sobj *key, struct sobj *value)
 Replace an element in an array object.
sobjsobj_replace_with_string (struct sobj *sobj, int position, const char *key_string, struct sobj *value)
 Replace an element in an array object.
sobjsobj_put (struct sobj *sobj, struct sobj *key, struct sobj *value, struct sobj_env *env)
 Alter or add an element in/to an array object.
sobjsobj_put_with_string (struct sobj *sobj, const char *key_string, struct sobj *value, struct sobj_env *env)
 Alter or add an element in/to an array object.
sobjsobj_concat (struct sobj *sobj, struct sobj *operand)
 Append an array object to an array object or a string object to a string object.
sobjsobj_set (struct sobj *sobj, const char *address, struct sobj *value, bool slice, struct sobj_env *env)
 Substitute a subobject at the specified address.
sobjsobj_set2 (struct sobj *sobj, struct sobj *address, struct sobj *value, bool slice, struct sobj_env *env)
 Substitute a subobject at the specified address.
sobjsobj_string_insert (struct sobj *sobj, int position, const char *string)
 Insert a string into a string object.
sobjsobj_string_append (struct sobj *sobj, const char *string)
 Append a string to the end of a string object.
sobjsobj_string_replace (struct sobj *sobj, int position, int length, const char *string)
 Replace a substring of the specified string object.
sobjsobj_string_replace_ucx (struct sobj *sobj, int position, int length, const char *string_ucx)
 Replace a substring of the specified string object.

Function Documentation

struct sobj * sobj_concat_array struct sobj sobj,
struct sobj operand
[static]
 

Append an array object to an array object.

Parameters:
sobj The called object.
operand The operand object to be appeded to sobj.
Returns:
The concatenation of sobj and operand.

struct sobj * sobj_concat_string struct sobj sobj,
struct sobj operand
[static]
 

Append a string object to a string object.

Parameters:
sobj The called object.
operand The operand object to be appeded to sobj.
Returns:
The concatenation of sobj and operand.


Generated on Sat Jul 23 16:05:24 2005 for sobject by  doxygen 1.3.9.1