Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
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
The Tor Project
Core
Tor
Commits
b0f9ecdb
Commit
b0f9ecdb
authored
5 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Move 01g-strings.md into doxygen.
parent
d1a1631a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/string/strings.dox
+9
-1
9 additions, 1 deletion
src/lib/string/strings.dox
src/mainpage.dox
+2
-0
2 additions, 0 deletions
src/mainpage.dox
with
11 additions
and
1 deletion
doc/HACKING/design/01g-
strings.
m
d
→
src/lib/string/
strings.d
ox
+
9
−
1
View file @
b0f9ecdb
/**
##
String processing in Tor
##
@page strings
String processing in Tor
Since you're reading about a C program, you probably expected this
section: it's full of functions for manipulating the (notoriously
...
...
@@ -77,6 +78,11 @@ full of substrings in order. Then you can concatenate them into a
single string with smartlist_join_strings(), which also takes optional
separator and terminator arguments.
Alternatively, you might find it more convenient (and more
allocation-efficient) to use the buffer API in buffers.c: Construct a buf_t
object, add your data to it with buf_add_string(), buf_add_printf(), and so
on, then call buf_extract() to get the resulting output.
As a convenience, we provide smartlist_add_asprintf(), which combines
the two methods above together. Many of the cryptographic digest
functions also accept a not-yet-concatenated smartlist of strings.
...
...
@@ -93,3 +99,5 @@ you can use hex_str(memory, length) for that.
The escaped() and hex_str() functions both provide outputs that are
only valid till they are next invoked; they are not threadsafe.
*/
This diff is collapsed.
Click to expand it.
src/mainpage.dox
+
2
−
0
View file @
b0f9ecdb
...
...
@@ -36,6 +36,8 @@ Tor repository.
@subpage threading
@subpage strings
**/
/**
...
...
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