OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/bluetooth/bluetooth_utils.h" | 5 #include "device/bluetooth/bluetooth_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 static const char* kCommonUuidPostfix = "-0000-1000-8000-00805f9b34fb"; | 14 static const char* kCommonUuidPostfix = "-0000-1000-8000-00805f9b34fb"; |
15 static const char* kCommonUuidPrefix = "0000"; | 15 static const char* kCommonUuidPrefix = "0000"; |
16 static const int kUuidSize = 36; | 16 static const int kUuidSize = 36; |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 namespace device { | 19 namespace device { |
20 namespace bluetooth_utils { | 20 namespace bluetooth_utils { |
21 | 21 |
(...skipping 28 matching lines...) Expand all Loading... |
50 if (!IsHexDigit(uuid[i])) | 50 if (!IsHexDigit(uuid[i])) |
51 return std::string(); | 51 return std::string(); |
52 uuid_result[i] = tolower(uuid[i]); | 52 uuid_result[i] = tolower(uuid[i]); |
53 } | 53 } |
54 } | 54 } |
55 return uuid_result; | 55 return uuid_result; |
56 } | 56 } |
57 | 57 |
58 } // namespace bluetooth_utils | 58 } // namespace bluetooth_utils |
59 } // namespace device | 59 } // namespace device |
OLD | NEW |