Skip to content

Add length(), lengthT() and 'size' equivalents#4

Open
Red-Leader117 wants to merge 1 commit intomasterfrom
new-api-length
Open

Add length(), lengthT() and 'size' equivalents#4
Red-Leader117 wants to merge 1 commit intomasterfrom
new-api-length

Conversation

@Red-Leader117
Copy link
Copy Markdown
Owner

@Red-Leader117 Red-Leader117 commented Nov 28, 2018

Note: Fulfills issue #3

Adds the following Astr class function members:

  • length()
  • lengthT()
  • size()
  • sizeT()

Details:

  • the "T" suffix indicates that the null-terminator is included in the returned
  • size() and sizeT() are equivalents and are defined in terms of length*()
  • length was chosen as the preferred names because a string is, for example, "5 characters long," while size may be interpreted as the number of bytes taken by the string

@Red-Leader117 Red-Leader117 added the enhancement New feature or request label Nov 28, 2018
@Red-Leader117
Copy link
Copy Markdown
Owner Author

  • size() and sizeT() must be tested
  • const length?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant