Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Adds a size parameter to JStringRef (#152)
Browse files Browse the repository at this point in the history
Want to use that for some allwpilib JNI cleanups and potential bug fixes
  • Loading branch information
ThadHouse authored and PeterJohnson committed Nov 8, 2016
1 parent 77edf1e commit dc94a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wpiutil/include/support/jni_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class JStringRef {
operator llvm::StringRef() const { return m_str; }
llvm::StringRef str() const { return m_str; }
const char* c_str() const { return m_str.data(); }
size_t size() const { return m_str.size(); }

private:
llvm::SmallString<128> m_str;
Expand Down

0 comments on commit dc94a3f

Please sign in to comment.