contact ring id : fix bad formatting

- trimms the the string "from" received by the daemon's
IncomingCall signal

Change-Id: I0dd6afcfcd43847afbda640b387465d12a9930d8
diff --git a/Utils.h b/Utils.h
index 9eb3f0b..0a61889 100644
--- a/Utils.h
+++ b/Utils.h
@@ -106,6 +106,24 @@
     return ref new Platform::String(first, static_cast<unsigned int>(last - first));

 }

 

+/* fix some issue in the daemon --> <...@...> */

+Platform::String^ TrimRingId(Platform::String^ s)

+{

+    const WCHAR* first = s->Begin();

+    const WCHAR* last = s->End();

+

+    while (first != last && *first != '<')

+        ++first;

+

+    while (first != last && last[-1] != '@')

+        --last;

+

+    first++;

+    last--;

+

+    return ref new Platform::String(first, static_cast<unsigned int>(last - first));

+}

+

 Platform::String^ GetNewGUID()

 {

     GUID result;