Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
01283faa
Commit
01283faa
authored
Jul 18, 2014
by
jieluo@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printUnicode methods in TextFormat
parent
4de8f551
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
TextFormat.java
java/src/main/java/com/google/protobuf/TextFormat.java
+20
-0
No files found.
java/src/main/java/com/google/protobuf/TextFormat.java
View file @
01283faa
...
...
@@ -83,6 +83,26 @@ public final class TextFormat {
DEFAULT_PRINTER
.
printUnknownFields
(
fields
,
new
TextGenerator
(
output
));
}
/**
* Same as {@code print()}, except that non-ASCII characters are not
* escaped.
*/
public
static
void
printUnicode
(
final
MessageOrBuilder
message
,
final
Appendable
output
)
throws
IOException
{
UNICODE_PRINTER
.
print
(
message
,
new
TextGenerator
(
output
));
}
/**
* Same as {@code print()}, except that non-ASCII characters are not
* escaped.
*/
public
static
void
printUnicode
(
final
UnknownFieldSet
fields
,
final
Appendable
output
)
throws
IOException
{
UNICODE_PRINTER
.
printUnknownFields
(
fields
,
new
TextGenerator
(
output
));
}
/**
* Generates a human readable form of this message, useful for debugging and
* other purposes, with no newline characters.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment