Is There a Funding Set Up for Those Who Need to Go to Drug Rehab but Can’t Afford It?

My bf is a herion addict and he deperately needs help. He wants to get off but can’ t do it by himself. He needs to go to an intensive detox and rehab program. He doesn’t have the money or insurance though. Are there any facilities that take people on a “charity” basis? Or does the government set aside so mcuh money for cases like this? He is only 30 and has his whole future ahead of him. He knows he was an idiot to start doing it now. The important thing is that he wants the help and he wants to get clean. Any info. greatly apprectiated!