Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
48:81866008bba4
Parent:
25:8507bf644fdf
--- a/string_tokenizer.c	Thu Jul 12 18:10:56 2018 -0700
+++ b/string_tokenizer.c	Tue Sep 11 11:15:08 2018 -0700
@@ -74,7 +74,7 @@
     {
         result = __FAILURE__;
     }
-    else 
+    else
     {
         STRING_TOKEN* token = (STRING_TOKEN*)tokenizer;
         /* Codes_SRS_STRING_04_011: [Each subsequent call to STRING_TOKENIZER_get_next_token starts searching from the saved position on t and behaves as described above.] */
@@ -119,11 +119,11 @@
 
             /* Codes_SRS_STRING_04_006: [If no such character is found, then STRING_TOKENIZER_get_next_token shall return a nonzero Value (You've reach the end of the string or the string consists with only delimiters).] */
             //At this point update Current Pos to the character of the last token found or end of String.
-            token->currentPos += i; 
-            
+            token->currentPos += i;
+
             //Update the remainingInputStringSize
             remainingInputStringSize -= i;
-            
+
             /* Codes_SRS_STRING_04_006: [If no such character is found, then STRING_TOKENIZER_get_next_token shall return a nonzero Value (You've reach the end of the string or the string consists with only delimiters).] */
             if (remainingInputStringSize == 0)
             {
@@ -135,7 +135,7 @@
                 const char* endOfTokenPosition=NULL;
                 size_t amountOfCharactersToCopy;
                 size_t j;
-                //At this point the Current Pos is pointing to a character that is point to a nonDelimiter. So, now search for a Delimiter, till the end of the String. 
+                //At this point the Current Pos is pointing to a character that is point to a nonDelimiter. So, now search for a Delimiter, till the end of the String.
                 /*Codes_SRS_STRING_04_008: [STRING_TOKENIZER_get_next_token than searches from the start of a token for a character that is contained in the delimiters string.] */
                 /* Codes_SRS_STRING_04_009: [If no such character is found, STRING_TOKENIZER_get_next_token extends the current token to the end of the string inside t, copies the token to output and returns 0.] */
                 /* Codes_SRS_STRING_04_010: [If such a character is found, STRING_TOKENIZER_get_next_token consider it the end of the token and copy it's content to output, updates the current position inside t to the next character and returns 0.] */
@@ -157,8 +157,8 @@
                 {
                     amountOfCharactersToCopy = endOfTokenPosition - token->currentPos;
                 }
-                
-                //copy here the string to output. 
+
+                //copy here the string to output.
                 if (STRING_copy_n(output, token->currentPos, amountOfCharactersToCopy) != 0)
                 {
                     LogError("Problem copying token to output String.");
@@ -176,8 +176,8 @@
                     {
                         token->currentPos += amountOfCharactersToCopy;
                     }
-                    
-                    result = 0; //Result will be on the output. 
+
+                    result = 0; //Result will be on the output.
                 }
             }
         }