forked from ros2/rcutils
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make escape characters work (ros2#426)
* make escape characters work Signed-off-by: Chen Lihui <lihui.chen@sony.com> * remove \\ and \0 cases as it seems unnecessary add the extra one position only if an expected char found * use a different name for variables and address flake8 * decode once at the beginning * reduce the times of memcpy * update test to make the escape characters parsered by rcutils not by python itself * not to process the \f and \v escaped characters Signed-off-by: Chen Lihui <lihui.chen@sony.com> Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> Co-authored-by: Chris Lalancette <clalancette@gmail.com>
- Loading branch information
1 parent
629d554
commit f078c8c
Showing
4 changed files
with
88 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name1 0\a1\b23\n44\r5\t67 Xx{2045}X | ||
name2 0\a1\b23\n44\r5\t67 X42x{2043}X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
\tname1\n\tXx{2045}X\n | ||
\tname2\n\tX42x{2043}X\n |