OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * Copyright (C) 2009 Google Inc. All rights reserved. | 4 * Copyright (C) 2009 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 Vector<String> ContentType::codecs() const | 79 Vector<String> ContentType::codecs() const |
80 { | 80 { |
81 String codecsParameter = parameter("codecs"); | 81 String codecsParameter = parameter("codecs"); |
82 | 82 |
83 if (codecsParameter.isEmpty()) | 83 if (codecsParameter.isEmpty()) |
84 return Vector<String>(); | 84 return Vector<String>(); |
85 | 85 |
86 Vector<String> codecs; | 86 Vector<String> codecs; |
87 codecsParameter.split(",", codecs); | 87 codecsParameter.split(',', codecs); |
88 for (size_t i = 0; i < codecs.size(); ++i) | 88 for (size_t i = 0; i < codecs.size(); ++i) |
89 codecs[i] = codecs[i].simplifyWhiteSpace(); | 89 codecs[i] = codecs[i].simplifyWhiteSpace(); |
90 | 90 |
91 return codecs; | 91 return codecs; |
92 } | 92 } |
93 | 93 |
94 } // namespace WebCore | 94 } // namespace WebCore |
OLD | NEW |