1/*
2 * Copyright 2010 Stephan A��mus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5
6#include "BaseURL.h"
7
8
9BString
10baseURL(const BString string)
11{
12	int32 baseURLStart = string.FindFirst("://") + 3;
13	int32 baseURLEnd = string.FindFirst("/", baseURLStart + 1);
14	BString result;
15	result.SetTo(string.String() + baseURLStart, baseURLEnd - baseURLStart);
16	return result;
17}
18
19