Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
762f1f74
Commit
762f1f74
authored
19 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Added replace_many() replated functions and structs.
Rev: src/builtin_functions.h:1.33
parent
6f6d2b75
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/builtin_functions.h
+33
-2
33 additions, 2 deletions
src/builtin_functions.h
with
33 additions
and
2 deletions
src/builtin_functions.h
+
33
−
2
View file @
762f1f74
...
...
@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
|| $Id: builtin_functions.h,v 1.3
2
200
4
/0
9/28 16:55:07
grubba Exp $
|| $Id: builtin_functions.h,v 1.3
3
200
6
/0
3/11 17:21:34
grubba Exp $
*/
#ifndef BUILTIN_EFUNS_H
...
...
@@ -27,6 +27,25 @@ PMOD_EXPORT void debug_f_aggregate(INT32 args);
#define f_aggregate(X) debug_f_aggregate(X)
#endif
struct
replace_many_tupel
{
int
prefix
;
int
is_prefix
;
struct
pike_string
*
ind
;
struct
pike_string
*
val
;
};
struct
replace_many_context
{
struct
replace_many_tupel
*
v
;
struct
pike_string
*
empty_repl
;
int
set_start
[
256
];
int
set_end
[
256
];
int
other_start
;
int
num
;
int
flags
;
};
PMOD_EXPORT
void
f_equal
(
INT32
args
);
PMOD_EXPORT
void
f_hash
(
INT32
args
);
PMOD_EXPORT
void
f_copy_value
(
INT32
args
);
...
...
@@ -61,8 +80,20 @@ PMOD_EXPORT void f_indices(INT32 args);
PMOD_EXPORT
void
f_values
(
INT32
args
);
PMOD_EXPORT
void
f_next_object
(
INT32
args
);
PMOD_EXPORT
void
f_object_program
(
INT32
args
);
int
find_longest_prefix
(
char
*
str
,
ptrdiff_t
len
,
int
size_shift
,
struct
replace_many_tupel
*
v
,
INT32
a
,
INT32
b
);
void
free_replace_many_context
(
struct
replace_many_context
*
ctx
);
void
compile_replace_many
(
struct
replace_many_context
*
ctx
,
struct
array
*
from
,
struct
array
*
to
,
int
reference_strings
);
struct
pike_string
*
execute_replace_many
(
struct
replace_many_context
*
ctx
,
struct
pike_string
*
str
);
PMOD_EXPORT
void
f_reverse
(
INT32
args
);
struct
tupel
;
PMOD_EXPORT
void
f_replace
(
INT32
args
);
PMOD_EXPORT
void
f_compile
(
INT32
args
);
PMOD_EXPORT
void
f_objectp
(
INT32
args
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment