-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand tab to spaces #3210
Closed
Closed
Expand tab to spaces #3210
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
# properties | ||
[*.{h,c,hpp,cpp,m,java}] | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* $Id$ */ | ||
/* | ||
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) | ||
* Copyright (C) 2003-2008 Benny Prijono <[email protected]> | ||
|
@@ -72,5 +71,5 @@ | |
#include <pjlib-util/cli_console.h> | ||
#include <pjlib-util/cli_telnet.h> | ||
|
||
#endif /* __PJLIB_UTIL_H__ */ | ||
#endif /* __PJLIB_UTIL_H__ */ | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* $Id$ */ | ||
/* | ||
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) | ||
* Copyright (C) 2003-2008 Benny Prijono <[email protected]> | ||
|
@@ -40,44 +39,44 @@ PJ_BEGIN_DECL | |
* Helper macro to calculate the approximate length required for base256 to | ||
* base64 conversion. | ||
*/ | ||
#define PJ_BASE256_TO_BASE64_LEN(len) (len * 4 / 3 + 3) | ||
#define PJ_BASE256_TO_BASE64_LEN(len) (len * 4 / 3 + 3) | ||
|
||
/** | ||
* Helper macro to calculate the approximage length required for base64 to | ||
* base256 conversion. | ||
*/ | ||
#define PJ_BASE64_TO_BASE256_LEN(len) (len * 3 / 4) | ||
#define PJ_BASE64_TO_BASE256_LEN(len) (len * 3 / 4) | ||
|
||
|
||
/** | ||
* Encode a buffer into base64 encoding. | ||
* | ||
* @param input The input buffer. | ||
* @param input The input buffer. | ||
* @param in_len Size of the input buffer. | ||
* @param output Output buffer. Caller must allocate this buffer with | ||
* the appropriate size. | ||
* the appropriate size. | ||
* @param out_len On entry, it specifies the length of the output buffer. | ||
* Upon return, this will be filled with the actual | ||
* length of the output buffer. | ||
* Upon return, this will be filled with the actual | ||
* length of the output buffer. | ||
* | ||
* @return PJ_SUCCESS on success. | ||
* @return PJ_SUCCESS on success. | ||
*/ | ||
PJ_DECL(pj_status_t) pj_base64_encode(const pj_uint8_t *input, int in_len, | ||
char *output, int *out_len); | ||
char *output, int *out_len); | ||
|
||
|
||
/** | ||
* Decode base64 string. | ||
* | ||
* @param input Input string. | ||
* @param out Buffer to store the output. Caller must allocate | ||
* this buffer with the appropriate size. | ||
* @param input Input string. | ||
* @param out Buffer to store the output. Caller must allocate | ||
* this buffer with the appropriate size. | ||
* @param out_len On entry, it specifies the length of the output buffer. | ||
* Upon return, this will be filled with the actual | ||
* length of the output. | ||
* Upon return, this will be filled with the actual | ||
* length of the output. | ||
*/ | ||
PJ_DECL(pj_status_t) pj_base64_decode(const pj_str_t *input, | ||
pj_uint8_t *out, int *out_len); | ||
pj_uint8_t *out, int *out_len); | ||
|
||
|
||
|
||
|
@@ -88,5 +87,5 @@ PJ_DECL(pj_status_t) pj_base64_decode(const pj_str_t *input, | |
PJ_END_DECL | ||
|
||
|
||
#endif /* __PJLIB_UTIL_BASE64_H__ */ | ||
#endif /* __PJLIB_UTIL_BASE64_H__ */ | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this config won't work with VS Code? (see internal discussion email)
Also, perhaps add note in the PR what editors you have tested with and which work and which doesn't, in terms of viewing and adding/editing code, so users know what to expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work after the tab is expanded to spaces. It's not going to work if spaces is still use in the code.