Projects

Ticket #16: patch-CommonUtilitiesLib_StrPtrLen_h

File patch-CommonUtilitiesLib_StrPtrLen_h, 0.7 KB (added by jason@…, 4 years ago)
Line 
1$OpenBSD$
2--- CommonUtilitiesLib/StrPtrLen.h.orig Tue May  6 01:28:59 2008
3+++ CommonUtilitiesLib/StrPtrLen.h      Fri Jun  6 21:41:35 2008
4@@ -66,7 +66,13 @@ class StrPtrLen
5         Bool16 NumEqualIgnoreCase(const char* compare, const UInt32 len) const;
6         
7         void Delete() { delete [] Ptr; Ptr = NULL; Len = 0; }
8-        char *ToUpper() { for (UInt32 x = 0; x < Len ; x++) Ptr[x] = toupper (Ptr[x]); return Ptr;}
9+               char *ToUpper()
10+     {
11+                          for (UInt32 x = 0; x < Len ; x++)
12+                              Ptr[x] = toupper (Ptr[x]);
13+                          return Ptr;
14+     }
15+   
16         
17         char *FindStringCase(char *queryCharStr, StrPtrLen *resultStr, Bool16 caseSensitive) const;
18