diff options
| author | 2011-03-14 11:32:29 -0700 | |
|---|---|---|
| committer | 2011-03-14 17:59:51 -0700 | |
| commit | bb959f5b10374fdc6665b2ac1c18a07cea6effb7 (patch) | |
| tree | 896d30509ded6e9ea7d1f7a0e98d9a4e435be7c2 | |
| parent | bd9100b11b73c480bb0dc8958435ce8180dff605 (diff) | |
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
| -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 6b49ff5b4f..4163697d2d 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" |