diff options
author | Glenn Kasten <gkasten@google.com> | 2011-03-14 11:32:29 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2011-03-14 17:59:51 -0700 |
commit | f8a1842e07d5c018b33762a72a1b1b5117947579 (patch) | |
tree | 38a13589cc1a40364e8a8b3bcc3ccd0c797ef47d /include/utils | |
parent | e21110f8b1e4aa884f7a4e2164ae90dab8d5f3fa (diff) | |
download | frameworks_base-f8a1842e07d5c018b33762a72a1b1b5117947579.zip frameworks_base-f8a1842e07d5c018b33762a72a1b1b5117947579.tar.gz frameworks_base-f8a1842e07d5c018b33762a72a1b1b5117947579.tar.bz2 |
Bug 4016329 do full string comparisons
Use full string comparisons instead of partial for
file extension and MIME type.
Do case-insensitive comparison of MIME type and file extensions.
Fix error in comment for String8::getPathExtension.
Remove dead code -- StringTokenizer is unused.
Change-Id: I322be6235abbdaab5f7eafa48926dbb2cf46dc29
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/String8.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/utils/String8.h b/include/utils/String8.h index 6b49ff5..4163697 100644 --- a/include/utils/String8.h +++ b/include/utils/String8.h @@ -165,8 +165,8 @@ public: String8 walkPath(String8* outRemains = NULL) const; /* - * Return the filename extension. This is the last '.' and up to - * four characters that follow it. The '.' is included in case we + * Return the filename extension. This is the last '.' and any number + * of characters that follow it. The '.' is included in case we * decide to expand our definition of what constitutes an extension. * * "/tmp/foo/bar.c" --> ".c" |